Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
All
-
None
Description
There is a potential race condition in the IndexViewManager.invalidate method:
public void invalidate() { View currentView = view.get(); for (SSTableIndex index : currentView) { index.markObsolete(); } view.set(new View(context, Collections.emptyList())); }
We should getAndSet the view before marking the indexes as obsolete. This would avoid indexes potentially being made obsolete when being accessed.
Attachments
Issue Links
- is fixed by
-
CASSANDRA-18715 Add support for vector search in SAI
- Resolved