Jackie-Jiang commented on code in PR #17009:
URL: https://github.com/apache/pinot/pull/17009#discussion_r2427572945
##########
pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/operator/MailboxSendOperator.java:
##########
@@ -214,21 +214,28 @@ protected MseBlock getNextBlock() {
sendEos((MseBlock.Eos) block);
} else {
sendMseBlock(((MseBlock.Data) block));
+ checkTerminationAndSampleUsage();
}
- checkTerminationAndSampleUsage();
return block;
- } catch (QueryCancelledException e) {
- LOGGER.debug("Query was cancelled for opChain: {}", _context.getId());
- return SuccessMseBlock.INSTANCE;
- } catch (TerminationException e) {
- LOGGER.info("Query was terminated for opChain: {}", _context.getId(), e);
- return ErrorMseBlock.fromException(e);
- } catch (QueryException e) {
- return ErrorMseBlock.fromException(e);
} catch (RuntimeException e) {
- ErrorMseBlock errorBlock = ErrorMseBlock.fromException(e);
- try {
+ if (e instanceof QueryCancelledException) {
+ LOGGER.debug("Query was cancelled for opChain: {}", _context.getId());
+ return SuccessMseBlock.INSTANCE;
+ }
+ ErrorMseBlock errorBlock;
Review Comment:
This is an important fix, where we need to send back the exception message
as an error block
--
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]