eldenmoon commented on code in PR #39468:
URL: https://github.com/apache/doris/pull/39468#discussion_r1724378536
##########
fe/fe-core/src/main/java/org/apache/doris/qe/PointQueryExecutor.java:
##########
@@ -122,16 +148,22 @@ void setScanRangeLocations() throws Exception {
}
candidateBackends = new ArrayList<>();
+ this.backendId2TabletIds = scanNode.getBackendId2TabletIds();
for (Long backendID : scanNode.getScanBackendIds()) {
Backend backend = Env.getCurrentSystemInfo().getBackend(backendID);
if (SimpleScheduler.isAvailable(backend)) {
candidateBackends.add(backend);
+ if (backendId2TabletIds.containsKey(backendID)) {
Review Comment:
why need to retainAll(tabletIDs), tabletIDs must contain all
backendId2TabletIds.get(backendID), and the logic is redundant?
--
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]