Skip to content

Commit

Permalink
[fix](coordinator) Fix wrong bucket assignment (#44603)
Browse files Browse the repository at this point in the history
follow-up : #44459
  • Loading branch information
Gabriel39 authored Nov 26, 2024
1 parent 0066bcd commit bce9b69
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java
Original file line number Diff line number Diff line change
Expand Up @@ -2766,17 +2766,18 @@ private void assignScanRanges(PlanFragmentId fragmentId, int parallelExecInstanc
.addAll(nodeScanRange.getValue());
}
}
params.instanceExecParams.add(instanceParam);
List<FInstanceExecParam> instanceExecParams = new ArrayList<>();
instanceExecParams.add(instanceParam);
for (int i = 1; i < parallelExecInstanceNum; i++) {
params.instanceExecParams.add(new FInstanceExecParam(
instanceExecParams.add(new FInstanceExecParam(
null, addressScanRange.getKey(), 0, params));
}
int index = 0;
for (Pair<Integer, Map<Integer, List<TScanRangeParams>>> nodeScanRangeMap : scanRange) {
params.instanceExecParams.get(index % params.instanceExecParams.size())
.addBucketSeq(nodeScanRangeMap.first);
instanceExecParams.get(index % instanceExecParams.size()).addBucketSeq(nodeScanRangeMap.first);
index++;
}
params.instanceExecParams.addAll(instanceExecParams);
} else {
int expectedInstanceNum = 1;
if (parallelExecInstanceNum > 1) {
Expand Down

0 comments on commit bce9b69

Please sign in to comment.