Mike Adamson created CASSANDRA-18927:
----------------------------------------
Summary: 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
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]