OIiveirra commented on code in PR #71331:
URL: https://github.com/apache/doris/pull/71331#discussion_r4781366524
##########
fe/fe-core/src/main/java/org/apache/doris/planner/AddLocalExchange.java:
##########
@@ -83,13 +84,15 @@ public void
addLocalExchange(FragmentIdMapping<DistributedPlan> distributedPlans
PlanTranslatorContext context) {
for (DistributedPlan plan : distributedPlans.values()) {
PipelineDistributedPlan pipePlan = (PipelineDistributedPlan) plan;
- long maxPerBeInstances = pipePlan.getInstanceJobs().stream()
+ LongSummaryStatistics instancesPerBe =
pipePlan.getInstanceJobs().stream()
.collect(java.util.stream.Collectors.groupingBy(
j -> j.getAssignedWorker().id(),
java.util.stream.Collectors.counting()))
-
.values().stream().mapToLong(Long::longValue).max().orElse(0);
+
.values().stream().mapToLong(Long::longValue).summaryStatistics();
+ long maxPerBeInstances = instancesPerBe.getMax();
if (maxPerBeInstances <= 1) {
continue;
}
+
context.setCurrentFragmentMinInstancesPerBe(instancesPerBe.getMin());
Review Comment:
Fixed in 91810cb1065. The decision now caps assigned tasks by executor
capacity on each participating BE and keeps hash for unknown capacity. The
focused tests include oversubscribed and heterogeneous workers.
--
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]