[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to