pranavshenoy commented on code in PR #4380:
URL: https://github.com/apache/cassandra/pull/4380#discussion_r2409332621
##########
src/java/org/apache/cassandra/index/sai/disk/StorageAttachedIndexWriter.java:
##########
@@ -164,6 +164,27 @@ public void staticRow(Row staticRow)
}
}
+ @Override
+ public void onSSTableWriterSwitched()
+ {
+ if (aborted) return;
+
+ try
+ {
+ for (PerColumnIndexWriter w : perIndexWriters)
+ {
+ w.onSSTableWriterSwitched(stopwatch);
+ }
+ }
+ catch (Throwable t)
+ {
+ logger.error(indexDescriptor.logMessage("Failed to flush segment
on sstable writer switched"), t);
+ abort(t, true);
+ // fail compaction task or index build task if SAI failed
+ throw Throwables.unchecked(t);
Review Comment:
done
--
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]