maedhroz commented on code in PR #2916:
URL: https://github.com/apache/cassandra/pull/2916#discussion_r1402516221
##########
src/java/org/apache/cassandra/index/sai/view/IndexViewManager.java:
##########
@@ -139,11 +145,70 @@ public void drop(Collection<SSTableReader>
sstablesToRebuild)
*/
public void invalidate()
{
- View previousView = view.getAndSet(new View(context,
Collections.emptyList()));
+ View previousView = view.getAndSet(new View(indexTermType,
Collections.emptyList()));
for (SSTableIndex index : previousView)
{
index.markObsolete();
}
}
+
+ /**
+ * @return the indexes that are built on the given SSTables on the left
and corrupted indexes'
+ * corresponding contexts on the right
+ */
+ private Pair<Collection<SSTableIndex>, Collection<SSTableContext>>
getBuiltIndexes(Collection<SSTableContext> sstableContexts, IndexValidation
validation)
Review Comment:
Yeah, moving this method here made a ton of sense.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]