HBASE-21244 Skip persistence when retrying for assignment related procedures

This commit is contained in:
zhangduo 2018-09-27 20:25:06 +08:00
parent 71be251ef2
commit d39ea25d44
2 changed files with 2 additions and 0 deletions

View File

@ -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();
} }
} }

View File

@ -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);