HBASE-21244 Skip persistence when retrying for assignment related procedures
This commit is contained in:
parent
71be251ef2
commit
d39ea25d44
|
@ -329,6 +329,7 @@ public class TransitRegionStateProcedure
|
||||||
backoff / 1000, this, regionNode.toShortString(), e);
|
backoff / 1000, this, regionNode.toShortString(), e);
|
||||||
setTimeout(Math.toIntExact(backoff));
|
setTimeout(Math.toIntExact(backoff));
|
||||||
setState(ProcedureProtos.ProcedureState.WAITING_TIMEOUT);
|
setState(ProcedureProtos.ProcedureState.WAITING_TIMEOUT);
|
||||||
|
skipPersistence();
|
||||||
throw new ProcedureSuspendedException();
|
throw new ProcedureSuspendedException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,6 +122,7 @@ public class ReopenTableRegionsProcedure
|
||||||
regions.size(), tableName, backoff / 1000);
|
regions.size(), tableName, backoff / 1000);
|
||||||
setTimeout(Math.toIntExact(backoff));
|
setTimeout(Math.toIntExact(backoff));
|
||||||
setState(ProcedureProtos.ProcedureState.WAITING_TIMEOUT);
|
setState(ProcedureProtos.ProcedureState.WAITING_TIMEOUT);
|
||||||
|
skipPersistence();
|
||||||
throw new ProcedureSuspendedException();
|
throw new ProcedureSuspendedException();
|
||||||
default:
|
default:
|
||||||
throw new UnsupportedOperationException("unhandled state=" + state);
|
throw new UnsupportedOperationException("unhandled state=" + state);
|
||||||
|
|
Loading…
Reference in New Issue