maedhroz commented on code in PR #2492:
URL: https://github.com/apache/cassandra/pull/2492#discussion_r1269846358
##########
src/java/org/apache/cassandra/db/streaming/CassandraStreamReceiver.java:
##########
@@ -242,6 +245,12 @@ public void finished()
}
else
{
+ // Validate SSTable-attached indexes that should have streamed
in an already complete state. When we
+ // don't stream the entire SSTable, validation is unnecessary,
as the indexes have just been written
+ // via the SSTable flush observer, and an error there would
have aborted the streaming transaction.
+ if (receivedEntireSSTable)
+ cfs.indexManager.validateSSTableAttachedIndexes(readers,
true);
Review Comment:
Yeah, I'll add an inline comment, but also add a `@throws` to the JavaDoc
downstream to mention the `UncheckedIOException`.
--
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]