Skip to content

Commit 6a73bc2

Browse files
deardengYour Name
authored andcommitted
[fix](cloud) Fixed uneven tablet performance during upgrades from older versions (#58135)
Prior to this #42986 PR, the `getLastUpdateMs` field of the backend was not written to the fe image. This caused the tablet mapping on the cloud to lose the PrimaryBackend information after the upgrade, resulting in the regeneration of an incorrect PrimaryBackend and uneven tablet distribution. detail: <img width="930" height="859" alt="image" src="https://github.com/user-attachments/assets/23d62adc-0bbb-49cb-b5b0-d1768f6422c7" />
1 parent df2a963 commit 6a73bc2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudTabletRebalancer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,9 @@ private boolean completeRouteInfo() {
641641
// primary backend is alive or dead not long
642642
Backend be = replica.getPrimaryBackend(cluster, false);
643643
if (be != null && (be.isQueryAvailable()
644-
|| (!be.isQueryDisabled() && be.getLastUpdateMs() > needRehashDeadTime))) {
644+
|| (!be.isQueryDisabled()
645+
// Compatible with older version upgrades, see https://github.com/apache/doris/pull/42986
646+
&& (be.getLastUpdateMs() <= 0 || be.getLastUpdateMs() > needRehashDeadTime)))) {
645647
beIds.add(be.getId());
646648
tabletIds.add(tablet.getId());
647649
continue;

0 commit comments

Comments
 (0)