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 <[email protected]>
(cherry picked from commit 7f9d1f2)
  • Loading branch information
bsglz authored and Apache9 committed Apr 4, 2022
1 parent 3b38380 commit 8ef1ae3
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 8ef1ae3

Please sign in to comment.