Skip to content
Permalink
Browse files
HBASE-26885 The TRSP should not go on when it get a bogus server name… (
#4276)

* HBASE-26885 The TRSP should not go on when it get a bogus server name from AM
  • Loading branch information
bsglz committed Mar 29, 2022
1 parent 19da537 commit 1efd8fe53c13cdbfde7cb3d0ff7ebea7b8b7d3bb
Showing 1 changed file with 3 additions and 1 deletion.
@@ -17,6 +17,8 @@
*/
package org.apache.hadoop.hbase.master.assignment;

import static org.apache.hadoop.hbase.master.LoadBalancer.BOGUS_SERVER_NAME;

import edu.umd.cs.findbugs.annotations.Nullable;
import java.io.IOException;
import org.apache.hadoop.hbase.HBaseIOException;
@@ -199,7 +201,7 @@ private void queueAssign(MasterProcedureEnv env, RegionStateNode regionNode)

private void openRegion(MasterProcedureEnv env, RegionStateNode regionNode) throws IOException {
ServerName loc = regionNode.getRegionLocation();
if (loc == null) {
if (loc == null || BOGUS_SERVER_NAME.equals(loc)) {
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);

0 comments on commit 1efd8fe

Please sign in to comment.