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/08/12 22:31:00 UTC
[jira] [Resolved] (RATIS-103) LeaderState.updateSenders may throws
UnsupportedOperationException
[ https://issues.apache.org/jira/browse/RATIS-103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz Wo Nicholas Sze resolved RATIS-103.
---------------------------------------
Resolution: Fixed
Fix Version/s: 0.2.0-alpha
Thanks Jing and Elek for taking a look!
I have committed this.
> LeaderState.updateSenders may throws UnsupportedOperationException
> ------------------------------------------------------------------
>
> Key: RATIS-103
> URL: https://issues.apache.org/jira/browse/RATIS-103
> Project: Ratis
> Issue Type: Bug
> Reporter: Tsz Wo Nicholas Sze
> Assignee: Tsz Wo Nicholas Sze
> Priority: Minor
> Fix For: 0.2.0-alpha
>
> Attachments: r103_20170811b.patch, r103_20170811.patch
>
>
> The CopyOnWriteArrayList may not work well in LeaderState since it does not support remove.
> RaftReconfigurationBaseTest.testRemovePeers() fails with UnsupportedOperationException.
> {code}
> Exception in thread "Thread-102" java.lang.UnsupportedOperationException
> at java.util.concurrent.CopyOnWriteArrayList$COWIterator.remove(CopyOnWriteArrayList.java:1176)
> at org.apache.ratis.server.impl.LeaderState.updateSenders(LeaderState.java:254)
> ...
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)