Skip to content
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-442]: Fix defers #436

Merged
merged 3 commits into from
Nov 15, 2023
Merged

[CLC-442]: Fix defers #436

merged 3 commits into from
Nov 15, 2023

Conversation

kutluhanmetin
Copy link
Contributor

No description provided.

@kutluhanmetin kutluhanmetin requested a review from yuce November 14, 2023 19:17
err = finalizeErr
if sts.ci != nil {
maybePrintWarnings(ctx, ec, sts.ci, mID.(string))
finalizeErr := finalizeMigration(ctx, ec, sts.ci, mID.(string), ec.Props().GetString(flagOutputDir))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change the stage.Execute call above so it uses "" instead of any(nil) as the initial state value?

mID, err := stage.Execute(ctx, ec, "", sp)

So the state type is string and casting it to string here is not necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kutluhanmetin kutluhanmetin requested a review from yuce November 15, 2023 12:55
@kutluhanmetin kutluhanmetin merged commit 356be1b into hazelcast:dmt Nov 15, 2023
5 checks passed
@degerhz degerhz added this to the Data Migration Tool [Phase 1] milestone Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DMT: seg fault when user exits application during 'step 1/3 Connecting to the migration cluster...' [CLC-442]
4 participants