-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLC-427][CLC-428]: Remove Data Migrations in Progress List and Status Map Usages #424
Conversation
kutluhanmetin
commented
Nov 2, 2023
•
edited
Loading
edited
- Remove Data Migrations in Progress List and Status Map Usages
- Refactor test files
- Add new stage "prechecks" to start command
- Wait for migration to be in STARTED status in start command
Must(tcx.CLC().Execute(ctx, "cancel")) | ||
}) | ||
MustValue(l.Remove(ctx, serialization.JSON(m))) | ||
time.Sleep(1 * time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may have a problem if these tests don't work without sleeping.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbh, these tests are not enough anyway. I'll build the migration cluster build from the "remove in progress list" PR and try basic things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(also I don't get why we have sleep in this test, how mocking of migration cluster is done is complex for me. )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kutluhanmetin The tests fail. Could you have a look? |
I have tried this version with the latest backend in the PR https://github.com/hazelcast/hazelcast-enterprise/pull/6765 The result of a dmt cancel when there's no migration in progress: I guess this error is not expected |
Status command when there's no migration: ➜ hazelcast-enterprise-5.3.5-DM-SNAPSHOT-slim ./dmt -c migration.yaml status Hazelcast Data Migration Tool v5.3.0 ERROR Could not connect to the migration cluster: finding migration in progress: no rows found |
Note: I approved because I retried all the scenarios above and all of them are fixed now. |
* add new stage "prechecks" to start command * wait for migration to be in STARTED status in start command
# Conflicts: # base/commands/migration/const.go # base/commands/migration/start_stages.go # base/commands/migration/utils.go