jtao15 commented on a change in pull request #7260:
URL: https://github.com/apache/pinot/pull/7260#discussion_r684515589



##########
File path: 
pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseBrokerRequestHandler.java
##########
@@ -532,6 +536,10 @@ private void logBrokerResponse(long requestId, String 
query, RequestStatistics r
           requestStatistics.getReduceTimeMillis(), 
brokerResponse.getExceptionsSize(), serverStats.getServerStats(),
           brokerResponse.getOfflineThreadCpuTimeNs(), 
brokerResponse.getRealtimeThreadCpuTimeNs(),
           StringUtils.substring(query, 0, _queryLogLength));
+      if (totalTimeMs > _brokerSlowQueryLatencyThreshold) {
+        LOGGER.warn("Slow query: requestId={}, table={}, timeMs={}", requestId,

Review comment:
       For manual debugging purposes, this won't add much value. But this can 
be useful for automatic tools as I commented below.




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

Reply via email to