siddharthteotia commented on code in PR #10171:
URL: https://github.com/apache/pinot/pull/10171#discussion_r1092358217
##########
pinot-spi/src/main/java/org/apache/pinot/spi/trace/Tracing.java:
##########
@@ -267,5 +279,20 @@ public static void initializeThreadAccountant(int numPqr,
int numPqw, PinotConfi
public static boolean isInterrupted() {
return Thread.interrupted() ||
Tracing.getThreadAccountant().isAnchorThreadInterrupted();
}
+
+ public static void sampleAndCheckInterruption() {
+ if (isInterrupted()) {
+ throw new EarlyTerminationException("Interrupted while merging
records");
Review Comment:
Is the exception message clear enough regardless of whether this happened on
broker or server ? I am guessing call stack will make it apparent
--
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]