[fix](tablet report) fix fe can not update replica's status with be's report #21600

This commit is contained in:
yujun
2023-07-09 16:23:18 +08:00
committed by GitHub
parent aacb9b9b66
commit 015426b2b4

View File

@ -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,