mcvsubbu commented on a change in pull request #7260:
URL: https://github.com/apache/pinot/pull/7260#discussion_r684667397
##########
File path:
pinot-core/src/main/java/org/apache/pinot/core/transport/InstanceRequestHandler.java
##########
@@ -184,9 +185,9 @@ private void sendResponse(ChannelHandlerContext ctx, String
tableNameWithType, l
_serverMetrics.addTimedTableValue(tableNameWithType,
ServerTimer.NETTY_CONNECTION_SEND_RESPONSE_LATENCY,
sendResponseLatencyMs, TimeUnit.MILLISECONDS);
- int totalQueryTimeMs = (int) (sendResponseEndTimeMs -
queryArrivalTimeMs);
- if (totalQueryTimeMs > SLOW_QUERY_LATENCY_THRESHOLD_MS) {
- LOGGER.info(
+ long totalQueryTimeMs = sendResponseEndTimeMs - queryArrivalTimeMs;
+ if (totalQueryTimeMs > _slowQueryLatencyThresholdMs) {
+ LOGGER.warn(
Review comment:
If we are adding a warning in the `BrokerRequestHandler`, then this
warning can be removed.
--
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]