morningman commented on a change in pull request #6513: URL: https://github.com/apache/incubator-doris/pull/6513#discussion_r696726743
########## File path: fe/fe-core/src/main/java/org/apache/doris/clone/TabletSchedCtx.java ########## @@ -499,10 +501,17 @@ public void chooseSrcReplica(Map<Long, PathSlot> backendsWorkingSlots) throws Sc long srcPathHash = slot.takeSlot(srcReplica.getPathHash()); if (srcPathHash != -1) { - setSrc(srcReplica); - return; + if (minVersionCount == -1 || srcReplica.getVersionCount() < minVersionCount) { + minVersionCount = srcReplica.getVersionCount(); Review comment: versionCount of a replica is set by report process. It may be -1 if the report is not done yet. So we need to check it. -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org