[Opt](Coordinator) Don't shuffle scan range locations when performing scan range assignments. (#27268)

Currently same query will scan different bytes in each instance in a single node environment. Don't shuffle scan range locations when performing scan range assignments to avoid it.
This commit is contained in:
Qi Chen
2023-12-04 09:26:11 +08:00
committed by GitHub
parent ba893a4e60
commit dfad778d51

View File

@ -2194,7 +2194,6 @@ public class Coordinator implements CoordInterface {
// only analysis olap scan node
continue;
}
Collections.shuffle(locations);
Set<Integer> scanNodeIds = fragmentIdToScanNodeIds.computeIfAbsent(scanNode.getFragmentId(),
k -> Sets.newHashSet());
scanNodeIds.add(scanNode.getId().asInt());