HBASE-26885 Addendum throw exception instead of return in TRSP to let the procedure retry (#4299)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
bsglz 2022-04-04 20:25:42 +08:00 committed by GitHub
parent 003c572246
commit 7f9d1f2259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ public class TransitRegionStateProcedure
LOG.warn("No location specified for {}, jump back to state {} to get one", getRegion(), LOG.warn("No location specified for {}, jump back to state {} to get one", getRegion(),
RegionStateTransitionState.REGION_STATE_TRANSITION_GET_ASSIGN_CANDIDATE); RegionStateTransitionState.REGION_STATE_TRANSITION_GET_ASSIGN_CANDIDATE);
setNextState(RegionStateTransitionState.REGION_STATE_TRANSITION_GET_ASSIGN_CANDIDATE); setNextState(RegionStateTransitionState.REGION_STATE_TRANSITION_GET_ASSIGN_CANDIDATE);
return; throw new HBaseIOException("Failed to open region, the location is null or bogus.");
} }
env.getAssignmentManager().regionOpening(regionNode); env.getAssignmentManager().regionOpening(regionNode);
addChildProcedure(new OpenRegionProcedure(this, getRegion(), loc)); addChildProcedure(new OpenRegionProcedure(this, getRegion(), loc));