You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz Wo Nicholas Sze (JIRA)" <ji...@apache.org> on 2017/07/20 21:23:00 UTC

[jira] [Created] (RATIS-96) LeaderState computeLastCommitted may throw ArrayIndexOutOfBoundsException

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

             Summary: LeaderState computeLastCommitted may throw ArrayIndexOutOfBoundsException
                 Key: RATIS-96
                 URL: https://issues.apache.org/jira/browse/RATIS-96
             Project: Ratis
          Issue Type: Bug
            Reporter: Tsz Wo Nicholas Sze


{code}
java.lang.ArrayIndexOutOfBoundsException: 0
	at org.apache.ratis.server.impl.LeaderState.computeLastCommitted(LeaderState.java:490)
	at org.apache.ratis.server.impl.LeaderState.updateLastCommitted(LeaderState.java:400)
	at org.apache.ratis.server.impl.LeaderState.handleEvent(LeaderState.java:329)
	at org.apache.ratis.server.impl.LeaderState.access$500(LeaderState.java:48)
{code}
This happens when followers is empty and not includeSelf == false.




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)