cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-6256) Gossip race condition can be missing HOST_ID
Date Thu, 02 Jan 2014 20:03:50 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-6256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13860680#comment-13860680
] 

Tyler Hobbs commented on CASSANDRA-6256:
----------------------------------------

The line numbers don't match 2.0 any more, but I'm guessing this is the line:

{noformat}
return UUID.fromString(getEndpointStateForEndpoint(endpoint).getApplicationState(ApplicationState.HOST_ID).value);
{noformat}

Are you sure that it wasn't the endpoint state that was null instead of the host ID?

> 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: Tyler Hobbs
>
> 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.5#6160)

Mime
View raw message