vrajat commented on code in PR #14921:
URL: https://github.com/apache/pinot/pull/14921#discussion_r1931513185


##########
pinot-broker/src/main/java/org/apache/pinot/broker/routing/BrokerRoutingManager.java:
##########
@@ -635,15 +636,15 @@ public RoutingTable getRoutingTable(BrokerRequest 
brokerRequest, long requestId)
         selectionResult.getUnavailableSegments(), 
selectionResult.getNumPrunedSegments());
   }
 
-  private Map<ServerInstance, Pair<List<String>, List<String>>> 
getServerInstanceToSegmentsMap(String tableNameWithType,
+  private Map<ServerInstance, ServerRouteInfo> 
getServerInstanceToSegmentsMap(String tableNameWithType,
       InstanceSelector.SelectionResult selectionResult) {
-    Map<ServerInstance, Pair<List<String>, List<String>>> merged = new 
HashMap<>();
+    Map<ServerInstance, ServerRouteInfo> merged = new HashMap<>();
     for (Map.Entry<String, String> entry : 
selectionResult.getSegmentToInstanceMap().entrySet()) {
       ServerInstance serverInstance = 
_enabledServerInstanceMap.get(entry.getValue());
       if (serverInstance != null) {
-        Pair<List<String>, List<String>> pair =
-            merged.computeIfAbsent(serverInstance, k -> Pair.of(new 
ArrayList<>(), new ArrayList<>()));
-        pair.getLeft().add(entry.getKey());
+        ServerRouteInfo executionInfo =

Review Comment:
   Done



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

Reply via email to