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

2017-07-31 Thread Tsz Wo Nicholas Sze (JIRA)

 [ 
https://issues.apache.org/jira/browse/RATIS-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz Wo Nicholas Sze updated RATIS-96:
-
Attachment: r96_20170731.patch

r96_20170731.patch: some minor changes to the test messages.

> 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
>Assignee: Tsz Wo Nicholas Sze
> Attachments: r96_20170720.patch, r96_20170725.patch, 
> r96_20170727.patch, r96_20170731.patch
>
>
> {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)


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

2017-07-28 Thread Tsz Wo Nicholas Sze (JIRA)

 [ 
https://issues.apache.org/jira/browse/RATIS-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz Wo Nicholas Sze updated RATIS-96:
-
Attachment: r96_20170727.patch

Thanks Jing. Re-uploaded the file.

> 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
>Assignee: Tsz Wo Nicholas Sze
> Attachments: r96_20170720.patch, r96_20170725.patch, 
> r96_20170727.patch
>
>
> {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)


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

2017-07-28 Thread Tsz Wo Nicholas Sze (JIRA)

 [ 
https://issues.apache.org/jira/browse/RATIS-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz Wo Nicholas Sze updated RATIS-96:
-
Attachment: (was: r96_20170727.patch)

> 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
>Assignee: Tsz Wo Nicholas Sze
> Attachments: r96_20170720.patch, r96_20170725.patch
>
>
> {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)


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

2017-07-27 Thread Tsz Wo Nicholas Sze (JIRA)

 [ 
https://issues.apache.org/jira/browse/RATIS-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz Wo Nicholas Sze updated RATIS-96:
-
Attachment: r96_20170727.patch

r96_20170727.patch: adds cluster.shutdown() to testReinitialize().

> 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
>Assignee: Tsz Wo Nicholas Sze
> Attachments: r96_20170720.patch, r96_20170725.patch, 
> r96_20170727.patch
>
>
> {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)


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

2017-07-20 Thread Tsz Wo Nicholas Sze (JIRA)

 [ 
https://issues.apache.org/jira/browse/RATIS-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz Wo Nicholas Sze updated RATIS-96:
-
Attachment: r96_20170720.patch

r96_20170720.patch: when the indices array is empty, skip update last committed 
index.

> 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
> Attachments: r96_20170720.patch
>
>
> {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)