Skip to content

RATIS-2521. LifeCycle.startAndTransition(..) may cause illegal transition: CLOSING -> EXCEPTION.#1452

Merged
szetszwo merged 1 commit intoapache:masterfrom
szetszwo:RATIS-2521
May 8, 2026
Merged

RATIS-2521. LifeCycle.startAndTransition(..) may cause illegal transition: CLOSING -> EXCEPTION.#1452
szetszwo merged 1 commit intoapache:masterfrom
szetszwo:RATIS-2521

Conversation

@szetszwo
Copy link
Copy Markdown
Contributor

@szetszwo szetszwo commented May 6, 2026

@szetszwo szetszwo requested a review from adoroszlai May 7, 2026 21:40
Copy link
Copy Markdown
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @szetszwo for the patch.

Comment on lines +121 to +122
Thread.sleep(100);
assertEquals(STARTING, simulatedServer.getLifeCycleState());
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.

Would using JavaUtils.attemptUntilTrue be better than Thread.sleep?

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.

Since the test is very simple, it is reliable to just use Thread.sleep.

An embarrassing reason is that TestRaftAsyncWithNetty often fails. It is not easy to pass all the tests. We probably should disable TestRaftAsyncWithNetty until it is fixed.

@szetszwo szetszwo merged commit 5db7830 into apache:master May 8, 2026
47 of 50 checks passed
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