[fix](replay) fix replay ReplicaPersistInfo no update lastFailedVersion and lastSuccVersion #39918 (#39947)

cherry pick from #39918
This commit is contained in:
yujun
2024-08-27 11:58:13 +08:00
committed by GitHub
parent 8dc3f3f347
commit 959ea278cb
2 changed files with 80 additions and 1 deletions

View File

@ -1071,7 +1071,8 @@ public class InternalCatalog implements CatalogIf<Database> {
Tablet tablet = materializedIndex.getTablet(info.getTabletId());
Replica replica = tablet.getReplicaById(info.getReplicaId());
Preconditions.checkNotNull(replica, info);
replica.updateVersion(info.getVersion());
replica.updateVersionWithFailed(info.getVersion(), info.getLastFailedVersion(),
info.getLastSuccessVersion());
replica.setDataSize(info.getDataSize());
replica.setRemoteDataSize(info.getRemoteDataSize());
replica.setRowCount(info.getRowCount());