You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2019/11/20 06:43:00 UTC

[jira] [Created] (RATIS-758) Illegal state transition in LeaderElection: RUNNING to CLOSED

Attila Doroszlai created RATIS-758:
--------------------------------------

             Summary: Illegal state transition in LeaderElection: RUNNING to CLOSED
                 Key: RATIS-758
                 URL: https://issues.apache.org/jira/browse/RATIS-758
             Project: Ratis
          Issue Type: Bug
          Components: server
            Reporter: Attila Doroszlai


Observed the following illegal state transition (using Ratis 0.5.0-d6d58d0-SNAPSHOT):

{code}
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)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)