You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2023/07/09 15:04:58 UTC
[doris] 01/06: [fix](tablet report) fix fe can not update replica's status with be's report #21600
This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
commit bb352983c607e7c5fdad8e359c3aa38c748640e0
Author: yujun <yu...@gmail.com>
AuthorDate: Sun Jul 9 16:23:18 2023 +0800
[fix](tablet report) fix fe can not update replica's status with be's report #21600
---
fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java b/fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java
index 0dd73b3c72..17be05444e 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java
@@ -673,6 +673,12 @@ public class ReportHandler extends Daemon {
replica.updateVersionInfo(backendVersion, dataSize, remoteDataSize, rowCount);
if (replica.getLastFailedVersion() < 0) {
+ if (replica.setBad(false)) {
+ LOG.info("sync replica {} of tablet {} in backend {} in db {}. "
+ + "replica change from bad to good.",
+ replica, tabletId, backendId, dbId);
+ }
+
// last failed version < 0 means this replica becomes health after sync,
// so we write an edit log to sync this operation
ReplicaPersistInfo info = ReplicaPersistInfo.createForClone(dbId, tableId,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org