Skip to content

Commit

Permalink
HBASE-26885 Addendum throw exception instead of return in TRSP to let…
Browse files Browse the repository at this point in the history
… the procedure retry (#4299)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
bsglz committed Apr 4, 2022
1 parent 003c572 commit 7f9d1f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 7f9d1f2

Please sign in to comment.