Skip to content

IGNITE-19688 use waitAndGetLeader instead of waitLeader and getLeader#2259

Merged
vldpyatkov merged 5 commits intoapache:mainfrom
gridgain:ignite-19688
Jul 10, 2023
Merged

IGNITE-19688 use waitAndGetLeader instead of waitLeader and getLeader#2259
vldpyatkov merged 5 commits intoapache:mainfrom
gridgain:ignite-19688

Conversation

@alievmirza
Copy link
Copy Markdown
Contributor

public Node waitAndGetLeader() throws InterruptedException {
Node node;

while (true) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you sure about need an infinity loop here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

changed to an assertion

@vldpyatkov vldpyatkov merged commit d13553e into apache:main Jul 10, 2023
@vldpyatkov vldpyatkov deleted the ignite-19688 branch July 10, 2023 12:30
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.

2 participants