You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "61yao (via GitHub)" <gi...@apache.org> on 2023/01/27 02:45:11 UTC
[GitHub] [pinot] 61yao commented on a diff in pull request #10179: [multistage][observability] Add an option to log operator stats to log.info
61yao commented on code in PR #10179:
URL: https://github.com/apache/pinot/pull/10179#discussion_r1088540354
##########
pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/operator/MailboxSendOperator.java:
##########
@@ -120,7 +120,7 @@ public List<MultiStageOperator> getChildOperators() {
@Override
public String toExplainString() {
_dataTableBlockBaseOperator.toExplainString();
- LOGGER.debug(_operatorStats.toString());
+ LOGGER.info(_operatorStats.toString());
Review Comment:
Can move in next PR since it is urgent.
##########
pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/executor/OpChainSchedulerService.java:
##########
@@ -114,18 +114,23 @@ public void runJob() {
register(operatorChain, false);
} else {
if (result.isErrorBlock()) {
- operatorChain.getRoot().toExplainString();
LOGGER.error("({}): Completed erroneously {} {}", operatorChain, operatorChain.getStats(),
result.getDataBlock().getExceptions());
} else {
- operatorChain.getRoot().toExplainString();
- LOGGER.debug("({}): Completed {}", operatorChain, operatorChain.getStats());
+ if (operatorChain.shouldLogOpStats()) {
+ LOGGER.info("({}): Completed {}", operatorChain, operatorChain.getStats());
+ }
}
operatorChain.close();
+ if (operatorChain.shouldLogOpStats()) {
+ operatorChain.getRoot().toExplainString();
+ }
Review Comment:
ditto
--
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: commits-unsubscribe@pinot.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org