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

Michael Semb Wever updated CASSANDRA-18927:
-------------------------------------------
    Fix Version/s: 5.0-beta1
                   5.0
                   5.1
                       (was: 5.0-beta)

> 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-beta1, 5.0, 5.1
>
>
> 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-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to