Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yujun777 committed Aug 30, 2024
1 parent aa732c7 commit 5c3aad5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1133,12 +1133,15 @@ private void unprotectUpdateReplica(OlapTable olapTable, ReplicaPersistInfo info
Tablet tablet = materializedIndex.getTablet(info.getTabletId());
Replica replica = tablet.getReplicaById(info.getReplicaId());
Preconditions.checkNotNull(replica, info);
replica.setBad(info.isBad());
if (info.isBad()) {
return;
}
replica.updateVersionWithFailed(info.getVersion(), info.getLastFailedVersion(),
info.getLastSuccessVersion());
replica.setDataSize(info.getDataSize());
replica.setRemoteDataSize(info.getRemoteDataSize());
replica.setRowCount(info.getRowCount());
replica.setBad(info.isBad());
}

public void replayAddReplica(ReplicaPersistInfo info) throws MetaNotFoundException {
Expand Down

0 comments on commit 5c3aad5

Please sign in to comment.