You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2020/05/27 03:20:30 UTC

[GitHub] [incubator-pinot] snleee commented on a change in pull request #5443: Add broker request info to the error msg in combine operator.

snleee commented on a change in pull request #5443:
URL: https://github.com/apache/incubator-pinot/pull/5443#discussion_r430115405



##########
File path: pinot-core/src/main/java/org/apache/pinot/core/operator/CombineOperator.java
##########
@@ -168,13 +168,13 @@ public IntermediateResultsBlock callJob()
     try {
       mergedBlock = mergedBlockFuture.get(endTimeMs - System.currentTimeMillis(), TimeUnit.MILLISECONDS);
     } catch (InterruptedException e) {
-      LOGGER.error("Caught InterruptedException.", e);
+      LOGGER.error("Caught InterruptedException. (brokerRequest = {})", _brokerRequest, e);

Review comment:
       I prefer brokerRequest. Otherwise, we need one more look up from the broker side, which will increase the time for debugging. Also, it's possible that broker side use the log sampling feature.
   
   How do you think?

##########
File path: pinot-core/src/main/java/org/apache/pinot/core/operator/CombineOperator.java
##########
@@ -168,13 +168,13 @@ public IntermediateResultsBlock callJob()
     try {
       mergedBlock = mergedBlockFuture.get(endTimeMs - System.currentTimeMillis(), TimeUnit.MILLISECONDS);
     } catch (InterruptedException e) {
-      LOGGER.error("Caught InterruptedException.", e);
+      LOGGER.error("Caught InterruptedException. (brokerRequest = {})", _brokerRequest, e);

Review comment:
       Also, I checked the code and `brokerRequest` doesn't have the `requestId`. `instanceRequest` has the `requestId`. So, printing `brokerRequest` here looks like a better option to us.




----------------------------------------------------------------
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.

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