You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Alex Petrov (JIRA)" <ji...@apache.org> on 2018/09/12 16:20:00 UTC

[jira] [Updated] (CASSANDRA-14742) Race Condition in batchlog replica collection

     [ https://issues.apache.org/jira/browse/CASSANDRA-14742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Petrov updated CASSANDRA-14742:
------------------------------------
    Description: 
When we collect nodes for it in {{StorageProxy#getBatchlogReplicas}}, we already filter out down replicas; subsequently they get picked up and taken for liveAndDown.

There's a possible race condition due to picking tokens from token metadata twice (once in {{StorageProxy#getBatchlogReplicas}} and second one in {{ReplicaPlan#forBatchlogWrite}})

  was:
When we collect nodes for it in StorageProxy#getBatchlogReplicas, we already filter out down replicas; subsequently they get picked up and taken for liveAndDown.

There's a possible race condition due to picking tokens from token metadata twice (once in StorageProxy#getBatchlogReplicas and second one in RP#forBatchlogWrite)


> Race Condition in batchlog replica collection
> ---------------------------------------------
>
>                 Key: CASSANDRA-14742
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14742
>             Project: Cassandra
>          Issue Type: Test
>            Reporter: Alex Petrov
>            Assignee: Alex Petrov
>            Priority: Major
>
> When we collect nodes for it in {{StorageProxy#getBatchlogReplicas}}, we already filter out down replicas; subsequently they get picked up and taken for liveAndDown.
> There's a possible race condition due to picking tokens from token metadata twice (once in {{StorageProxy#getBatchlogReplicas}} and second one in {{ReplicaPlan#forBatchlogWrite}})



--
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