smiklosovic commented on code in PR #3374:
URL: https://github.com/apache/cassandra/pull/3374#discussion_r1874400960


##########
src/java/org/apache/cassandra/repair/PreviewRepairTask.java:
##########
@@ -128,7 +129,7 @@ private void maybeSnapshotReplicas(TimeUUID parentSession, 
String keyspace, List
             for (String table : mismatchingTables)
             {
                 // we can just check snapshot existence locally since the 
repair coordinator is always a replica (unlike in the read case)
-                if 
(!Keyspace.open(keyspace).getColumnFamilyStore(table).snapshotExists(snapshotName))
+                if (SnapshotManager.instance.getSnapshot(keyspace, table, 
snapshotName).isEmpty())

Review Comment:
   added two `exists` methods, one taking a predicate, another just ks name, cf 
name and snapshot name



-- 
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]

Reply via email to