Tsz Wo Nicholas Sze created RATIS-337:
-----------------------------------------

             Summary: In RaftServerImpl, leaderState is accessed without proper 
null check
                 Key: RATIS-337
                 URL: https://issues.apache.org/jira/browse/RATIS-337
             Project: Ratis
          Issue Type: Bug
          Components: server
            Reporter: Tsz Wo Nicholas Sze
            Assignee: Tsz Wo Nicholas Sze


leaderState is declared as volatile.   Some code like below won't work since 
leaderState may be set to null in between.
{code}
//RaftServerImpl.checkLeaderState(..)
    } else if (leaderState == null || !leaderState.isReady()) {
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to