You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ga...@apache.org on 2025/11/21 14:21:28 UTC
(doris) branch master updated: [fix](cloud) Fixed uneven tablet performance during upgrades from older versions (#58135)
This is an automated email from the ASF dual-hosted git repository.
gavinchou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 636657a5abe [fix](cloud) Fixed uneven tablet performance during upgrades from older versions (#58135)
636657a5abe is described below
commit 636657a5abeb20e7202ddb3e58548764b4a06e38
Author: deardeng <de...@selectdb.com>
AuthorDate: Fri Nov 21 22:21:20 2025 +0800
[fix](cloud) Fixed uneven tablet performance during upgrades from older versions (#58135)
Prior to this https://github.com/apache/doris/pull/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"
/>
---
.../java/org/apache/doris/cloud/catalog/CloudTabletRebalancer.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudTabletRebalancer.java b/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudTabletRebalancer.java
index f6d1a58c9d3..5b34d299003 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudTabletRebalancer.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudTabletRebalancer.java
@@ -651,7 +651,9 @@ public class CloudTabletRebalancer extends MasterDaemon {
// primary backend is alive or dead not long
Backend be = replica.getPrimaryBackend(cluster, false);
if (be != null && (be.isQueryAvailable()
- || (!be.isQueryDisabled() && be.getLastUpdateMs() > needRehashDeadTime))) {
+ || (!be.isQueryDisabled()
+ // Compatible with older version upgrades, see https://github.com/apache/doris/pull/42986
+ && (be.getLastUpdateMs() <= 0 || be.getLastUpdateMs() > needRehashDeadTime)))) {
beIds.add(be.getId());
tabletIds.add(tablet.getId());
continue;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org