You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Mike Adamson (Jira)" <ji...@apache.org> on 2023/11/17 15:43:00 UTC
[jira] [Assigned] (CASSANDRA-18927) Fix potential race condition in IndexViewManager during invalidation
[ https://issues.apache.org/jira/browse/CASSANDRA-18927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Adamson reassigned CASSANDRA-18927:
----------------------------------------
Assignee: Mike Adamson
> Fix potential race condition in IndexViewManager during invalidation
> --------------------------------------------------------------------
>
> Key: CASSANDRA-18927
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18927
> Project: Cassandra
> Issue Type: Bug
> Components: Feature/SAI
> Reporter: Mike Adamson
> Assignee: Mike Adamson
> Priority: Normal
> Fix For: 5.0-rc
>
>
> There is a potential race condition in the {{IndexViewManager.invalidate}} method:
> {code:java}
> public void invalidate()
> {
> View currentView = view.get();
> for (SSTableIndex index : currentView)
> {
> index.markObsolete();
> }
> view.set(new View(context, Collections.emptyList()));
> } {code}
> We should {{getAndSet}} the view before marking the indexes as obsolete. This would avoid indexes potentially being made obsolete when being accessed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org