[
https://issues.apache.org/jira/browse/CASSANDRA-6564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tyler Hobbs updated CASSANDRA-6564:
-----------------------------------
Attachment: 6564-v1.patch
It looks like the third patch on CASSANDRA-5216 caused this. Basically,
there's only an expireTime for REMOVED statuses and not for REMOVING statuses,
but when dealing with non-member endpoints we didn't make that check. (I have
to admit that I'm not sure how we would get a REMOVING status for a non-member
endpoint.)
6564-v1.patch (and
[branch|https://github.com/thobbs/cassandra/tree/CASSANDRA-6564]) only looks
for an expire time for REMOVED states and adds a basic unit test. I wrote this
against 2.0, but I think it should apply to 1.2 and trunk as well.
> Gossiper failed with ArrayIndexOutOfBoundsException
> ---------------------------------------------------
>
> Key: CASSANDRA-6564
> URL: https://issues.apache.org/jira/browse/CASSANDRA-6564
> Project: Cassandra
> Issue Type: Bug
> Reporter: Shao-Chuan Wang
> Assignee: Tyler Hobbs
> Priority: Minor
> Labels: gossip
> Attachments: 6564-v1.patch
>
>
> We have 30 nodes in one DC, 25 nodes in another. We are running 2.0.1.
> Two nodes are joining the ring, but one of them failed with
> ArrayIndexOutOfBoundsException:
> {noformat}
> java.lang.ArrayIndexOutOfBoundsException: 2
> at
> org.apache.cassandra.service.StorageService.extractExpireTime(StorageService.java:1594)
> at
> org.apache.cassandra.service.StorageService.handleStateRemoving(StorageService.java:1550)
> at
> org.apache.cassandra.service.StorageService.onChange(StorageService.java:1174)
> at
> org.apache.cassandra.service.StorageService.onJoin(StorageService.java:1887)
> at
> org.apache.cassandra.gms.Gossiper.handleMajorStateChange(Gossiper.java:844)
> at
> org.apache.cassandra.gms.Gossiper.applyStateLocally(Gossiper.java:922)
> at
> org.apache.cassandra.gms.GossipDigestAck2VerbHandler.doVerb(GossipDigestAck2VerbHandler.java:49)
> at
> org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:56)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)