AntiTopQuark commented on code in PR #66191:
URL: https://github.com/apache/doris/pull/66191#discussion_r3868677520
##########
fe/fe-core/src/main/java/org/apache/doris/clone/TabletScheduler.java:
##########
@@ -756,9 +787,13 @@ private void handleReplicaMissing(TabletSchedCtx
tabletCtx, AgentBatchTask batch
// find proper tag
Tag tag = chooseProperTag(tabletCtx, true);
// find an available dest backend and path
- RootPathLoadStatistic destPath = chooseAvailableDestPath(tabletCtx,
tag, false /* not for colocate */);
+ RootPathLoadStatistic destPath =
chooseBasePreferredDestPath(tabletCtx, tag);
+ if (destPath == null) {
+ destPath = chooseAvailableDestPath(tabletCtx, tag, false /* not
for colocate */);
+ }
Preconditions.checkNotNull(destPath);
tabletCtx.setDest(destPath.getBeId(), destPath.getPathHash());
+ tabletCtx.setStorageMedium(destPath.getStorageMedium());
Review Comment:
Done
The partition-configured medium remains authoritative for the base tablet:
the base migrates first, then locality repair moves the row-binlog companion to
the base tablet’s exact path, while only independent migration of the companion
is disabled.
--
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]