[fix](load data) decommission replica don't load data when it misses versions #38198 (#38256)

cherry pick from #38198
This commit is contained in:
yujun
2024-07-23 20:28:05 +08:00
committed by GitHub
parent b591837e13
commit 798b8573c9

View File

@ -231,7 +231,9 @@ public class Tablet extends MetaObject implements Writable {
ReplicaState state = replica.getState();
if (state.canLoad()
|| (state == ReplicaState.DECOMMISSION && replica.getPostWatermarkTxnId() < 0)) {
|| (state == ReplicaState.DECOMMISSION
&& replica.getPostWatermarkTxnId() < 0
&& replica.getLastFailedVersion() < 0)) {
map.put(replica.getBackendId(), replica.getPathHash());
}
}