walterddr commented on code in PR #10157:
URL: https://github.com/apache/pinot/pull/10157#discussion_r1086079359
##########
pinot-query-planner/src/main/java/org/apache/pinot/query/routing/WorkerManager.java:
##########
@@ -93,26 +94,31 @@ public void assignWorkerToStage(int stageId, StageMetadata
stageMetadata, long r
"Entry for server {} and table type: {} already exist!",
serverEntry.getKey(), tableType);
}
}
- stageMetadata.setServerInstances(new
ArrayList<>(serverInstanceToSegmentsMap.keySet()));
+ stageMetadata.setServerInstances(new ArrayList<>(
+ serverInstanceToSegmentsMap.keySet()
+ .stream()
+ .map(server -> new VirtualServer(server, 0)) // for now, only
use single virtual server
+ .collect(Collectors.toList())));
Review Comment:
this is only for the leaf stage correct? if so can we be more clear on the
comments? thx
--
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]