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

IGNITE-17100 Make JoinReady command idempotent #853

Merged
merged 2 commits into from Jun 6, 2022

Conversation

sashapolo
Copy link
Contributor


assertThat(service.completeJoinCluster(), willCompleteSuccessfully());

assertThat(service.completeJoinCluster(), willCompleteSuccessfully());
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is completion tried 3 times, while start is only tried 2 times?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just wanted to verify that there's no state behind the start, so I execute the completion phase 1 time more

assertThat(service.completeJoinCluster(), willCompleteSuccessfully());

assertThat(service.completeJoinCluster(), willCompleteSuccessfully());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to also check how startJoinCluster() works AFTER completeJoinCluster()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know, it shouldn't happen in a normal case scenario...

Copy link
Contributor

@SammyVimes SammyVimes left a comment

Choose a reason for hiding this comment

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

LGTM

@SammyVimes SammyVimes merged commit 0b683dd into apache:main Jun 6, 2022
@SammyVimes SammyVimes deleted the ignite-17100 branch June 6, 2022 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants