gortiz commented on code in PR #15254: URL: https://github.com/apache/pinot/pull/15254#discussion_r1993551675
########## pinot-common/src/main/java/org/apache/pinot/common/metrics/ServerMeter.java: ########## @@ -148,6 +148,15 @@ public enum ServerMeter implements AbstractMetrics.Meter { * by 2. */ AGGREGATE_TIMES_NUM_GROUPS_LIMIT_REACHED("times", true), + /** + * Number of times the number of groups has reached the warning limit. + * It is increased at most one by one each time per stage. + * That means that if a stage has 10 workers and all of them reach the limit, this will be increased by 1. + * But if a single query has 2 different aggregate operators and each one reaches the limit, this will be increased + * by 2. + */ Review Comment: It looks like this value is only increased in SSE. Could we increase it in MSE as well? We could do the same trick we do with `AggregateOperator.StatKey.NUM_GROUPS_LIMIT_REACHED`: Introduce a new key saying whether we reached the logging limit or not. We should also log in AggregateOperator in the same way we log in SSE ########## pinot-broker/src/main/java/org/apache/pinot/broker/requesthandler/BaseSingleStageBrokerRequestHandler.java: ########## @@ -297,7 +297,7 @@ protected BrokerResponse handleRequest(long requestId, String query, SqlNodeAndO JsonNode request, @Nullable RequesterIdentity requesterIdentity, RequestContext requestContext, @Nullable HttpHeaders httpHeaders, AccessControl accessControl) throws Exception { - LOGGER.debug("SQL query for request {}: {}", requestId, query); + LOGGER.info("SQL query for request {}: {}", requestId, query); Review Comment: Ideally, this change could be in its own PR, or at least we should include a note in the PR description indicating that. ########## pinot-common/src/main/java/org/apache/pinot/common/response/broker/CursorResponseNative.java: ########## @@ -28,12 +28,12 @@ "requestId", "brokerId", "numDocsScanned", "totalDocs", "numEntriesScannedInFilter", "numEntriesScannedPostFilter", "numServersQueried", "numServersResponded", "numSegmentsQueried", "numSegmentsProcessed", "numSegmentsMatched", "numConsumingSegmentsQueried", "numConsumingSegmentsProcessed", "numConsumingSegmentsMatched", - "minConsumingFreshnessTimeMs", "numSegmentsPrunedByBroker", "numSegmentsPrunedByServer", - "numSegmentsPrunedInvalid", "numSegmentsPrunedByLimit", "numSegmentsPrunedByValue", "brokerReduceTimeMs", - "offlineThreadCpuTimeNs", "realtimeThreadCpuTimeNs", "offlineSystemActivitiesCpuTimeNs", - "realtimeSystemActivitiesCpuTimeNs", "offlineResponseSerializationCpuTimeNs", - "realtimeResponseSerializationCpuTimeNs", "offlineTotalCpuTimeNs", "realtimeTotalCpuTimeNs", - "explainPlanNumEmptyFilterSegments", "explainPlanNumMatchAllFilterSegments", "traceInfo", "tableQueries", + "minConsumingFreshnessTimeMs", "numSegmentsPrunedByBroker", "numSegmentsPrunedByServer", "numSegmentsPrunedInvalid", + "numSegmentsPrunedByLimit", "numSegmentsPrunedByValue", "brokerReduceTimeMs", "offlineThreadCpuTimeNs", + "realtimeThreadCpuTimeNs", "offlineSystemActivitiesCpuTimeNs", "realtimeSystemActivitiesCpuTimeNs", + "offlineResponseSerializationCpuTimeNs", "realtimeResponseSerializationCpuTimeNs", "offlineTotalCpuTimeNs", + "realtimeTotalCpuTimeNs", "explainPlanNumEmptyFilterSegments", "explainPlanNumMatchAllFilterSegments", "traceInfo", + "tableQueries", Review Comment: We don't need to modify this file anymore, right? ########## pinot-common/src/main/java/org/apache/pinot/common/metrics/ServerMeter.java: ########## @@ -148,6 +148,15 @@ public enum ServerMeter implements AbstractMetrics.Meter { * by 2. */ AGGREGATE_TIMES_NUM_GROUPS_LIMIT_REACHED("times", true), + /** + * Number of times the number of groups has reached the warning limit. + * It is increased at most one by one each time per stage. + * That means that if a stage has 10 workers and all of them reach the limit, this will be increased by 1. + * But if a single query has 2 different aggregate operators and each one reaches the limit, this will be increased + * by 2. + */ Review Comment: We may also want to log/increase the metric in GroupByCombineOperator and distinct operators? -- 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-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org