You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Blake Eggleston (JIRA)" <ji...@apache.org> on 2019/03/21 20:00:00 UTC

[jira] [Created] (CASSANDRA-15059) Gossiper#markAlive can race with Gossiper#markDead

Blake Eggleston created CASSANDRA-15059:
-------------------------------------------

             Summary: Gossiper#markAlive can race with Gossiper#markDead
                 Key: CASSANDRA-15059
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15059
             Project: Cassandra
          Issue Type: Bug
            Reporter: Blake Eggleston
            Assignee: Blake Eggleston


The Gossiper class is not threadsafe and assumes all state changes happen in a single thread (the gossip stage). Gossiper#convict, however, can be called from the GossipTasks thread. This creates a race where calls to Gossiper#markAlive and Gossiper#markDead can interleave, corrupting gossip state. Gossiper#assassinateEndpoint has a similar problem, being called from the mbean server thread.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org