You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jordan West (JIRA)" <ji...@apache.org> on 2018/06/18 22:00:01 UTC

[jira] [Updated] (CASSANDRA-14529) nodetool import row cache invalidation races with adding sstables to tracker

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

Jordan West updated CASSANDRA-14529:
------------------------------------
    Status: Patch Available  (was: Open)

Made the cache invalidation run after the files are added to the tracker. This is similar to [streaming|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/streaming/CassandraStreamReceiver.java#L207-L210]. There is still a race condition but the worst case is only invalidation of a cached copy of the newly added data. 

Branch: [https://github.com/jrwest/cassandra/commits/14529-trunk]
 Tests: [https://circleci.com/gh/jrwest/cassandra/tree/14529-trunk]

> nodetool import row cache invalidation races with adding sstables to tracker
> ----------------------------------------------------------------------------
>
>                 Key: CASSANDRA-14529
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14529
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jordan West
>            Assignee: Jordan West
>            Priority: Major
>
> CASSANDRA-6719 introduced {{nodetool import}} with row cache invalidation, which [occurs before adding new sstables to the tracker|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/db/SSTableImporter.java#L137-L178]. Stale reads will result after a read is interleaved with the read row's invalidation and adding the containing file to the tracker.  



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