cecemei commented on code in PR #19648:
URL: https://github.com/apache/druid/pull/19648#discussion_r3508727540


##########
server/src/main/java/org/apache/druid/client/CachingClusteredClient.java:
##########
@@ -345,6 +345,19 @@ ClusterQueryResult<T> run(
       }
 
       final Set<SegmentServerSelector> segmentServers = 
computeSegmentsToQuery(timeline, specificSegments);
+      log.info("Query[%s] found [%d] segments from timeline lookup.", 
query.getId(), segmentServers.size());
+      if (query.context().isDebug()) {
+        segmentServers.stream()
+                      .collect(Collectors.groupingBy(
+                          s -> s.getSegmentDescriptor().getInterval()
+                               + "_" + s.getSegmentDescriptor().getVersion()
+                               + "_" + (s.getServer() != null && 
s.getServer().isRealtimeSegment() ? "realtime" : "historical"),
+                          Collectors.counting()

Review Comment:
   this doesn't correspond to a segment, the interval is cropped



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