Skip to content
Permalink
Browse files
HBASE-26885 Addendum throw exception instead of return in TRSP to let…
… the procedure retry (#4299)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
bsglz committed Apr 4, 2022
1 parent 003c572 commit 7f9d1f2259da5851b532ae93aaea75126c706688
Showing 1 changed file with 1 addition and 1 deletion.
@@ -205,7 +205,7 @@ private void openRegion(MasterProcedureEnv env, RegionStateNode regionNode) thro
LOG.warn("No location specified for {}, jump back to state {} to get one", getRegion(),
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);
addChildProcedure(new OpenRegionProcedure(this, getRegion(), loc));

0 comments on commit 7f9d1f2

Please sign in to comment.