Brandon Williams created CASSANDRA-6256:
-------------------------------------------

             Summary: Gossip race condition can be missing HOST_ID
                 Key: CASSANDRA-6256
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6256
             Project: Cassandra
          Issue Type: Bug
            Reporter: Brandon Williams
            Assignee: Brandon Williams


A very rare and tight race of some sort can cause:

{noformat}
ERROR [GossipStage:1] 2013-10-26 00:48:32,071 CassandraDaemon.java (line 191) 
Exception in thread Thread[GossipStage:1,5,main]
java.lang.NullPointerException
        at org.apache.cassandra.gms.Gossiper.getHostId(Gossiper.java:696)
        at 
org.apache.cassandra.service.StorageService.handleStateNormal(StorageService.java:1388)
        at 
org.apache.cassandra.service.StorageService.onChange(StorageService.java:1257)
        at 
org.apache.cassandra.service.StorageService.onJoin(StorageService.java:1876)
        at 
org.apache.cassandra.gms.Gossiper.handleMajorStateChange(Gossiper.java:861)
        at 
org.apache.cassandra.gms.Gossiper.applyStateLocally(Gossiper.java:939)
        at 
org.apache.cassandra.gms.GossipDigestAckVerbHandler.doVerb(GossipDigestAckVerbHandler.java:58)
        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}

It isn't immediately clear how this happens since we set HOST_ID before the 
gossiper even starts.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to