Description
Observed the following illegal state transition (using Ratis 0.5.0-d6d58d0-SNAPSHOT):
2019-11-19 22:57:04,604 INFO impl.RoleInfo: 0b15f105-b523-4d80-ad5c-5dd005e74db0: start LeaderElection 2019-11-19 22:57:04,605 INFO impl.RaftServerImpl: 0b15f105-b523-4d80-ad5c-5dd005e74db0@group-3FF25090045A: changes role from CANDIDATE to FOLLOWER at term 3 for recognizeCandidate:ed65d927-a26b-4755-87c9-8340ec30b69f 2019-11-19 22:57:04,612 INFO impl.RoleInfo: 0b15f105-b523-4d80-ad5c-5dd005e74db0: shutdown LeaderElection Exception in thread "0b15f105-b523-4d80-ad5c-5dd005e74db0@group-3FF25090045A-LeaderElection4" java.lang.IllegalStateException: ILLEGAL TRANSITION: In 0b15f105-b523-4d80-ad5c-5dd005e74db0@group-3FF25090045A-LeaderElection4, RUNNING -> CLOSED at org.apache.ratis.util.Preconditions.assertTrue(Preconditions.java:63) at org.apache.ratis.util.LifeCycle$State.validate(LifeCycle.java:123) at org.apache.ratis.util.LifeCycle.transition(LifeCycle.java:143) at org.apache.ratis.server.impl.LeaderElection.run(LeaderElection.java:151)
Attachments
Attachments
Issue Links
- is related to
-
RATIS-578 Illegal State transition in LeaderElection
- Resolved
- links to