@InterfaceAudience.Private final class AssignmentManagerUtil extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_REGION_REPLICA |
Modifier | Constructor and Description |
---|---|
private |
AssignmentManagerUtil() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
checkClosedRegion(MasterProcedureEnv env,
RegionInfo regionInfo) |
private static TransitRegionStateProcedure[] |
createAssignProcedures(MasterProcedureEnv env,
List<RegionInfo> regions,
int regionReplication,
ServerName targetServer,
boolean ignoreIfInTransition)
Create assign procedures for the give regions, according to the
regionReplication . |
(package private) static TransitRegionStateProcedure[] |
createAssignProceduresForOpeningNewRegions(MasterProcedureEnv env,
List<RegionInfo> regions,
int regionReplication,
ServerName targetServer) |
(package private) static TransitRegionStateProcedure[] |
createUnassignProceduresForSplitOrMerge(MasterProcedureEnv env,
Stream<RegionInfo> regions,
int regionReplication) |
(package private) static org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetRegionInfoResponse |
getRegionInfoResponse(MasterProcedureEnv env,
ServerName regionLocation,
RegionInfo hri)
Raw call to remote regionserver to get info on a particular region.
|
(package private) static org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetRegionInfoResponse |
getRegionInfoResponse(MasterProcedureEnv env,
ServerName regionLocation,
RegionInfo hri,
boolean includeBestSplitRow) |
private static void |
lock(List<RegionStateNode> regionNodes) |
(package private) static void |
removeNonDefaultReplicas(MasterProcedureEnv env,
Stream<RegionInfo> regions,
int regionReplication) |
(package private) static void |
reopenRegionsForRollback(MasterProcedureEnv env,
List<RegionInfo> regions,
int regionReplication,
ServerName targetServer) |
private static void |
unlock(List<RegionStateNode> regionNodes) |
private static final int DEFAULT_REGION_REPLICA
private AssignmentManagerUtil()
static org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetRegionInfoResponse getRegionInfoResponse(MasterProcedureEnv env, ServerName regionLocation, RegionInfo hri) throws IOException
IOException
- Let it out so can report this IOE as reason for failurestatic org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.GetRegionInfoResponse getRegionInfoResponse(MasterProcedureEnv env, ServerName regionLocation, RegionInfo hri, boolean includeBestSplitRow) throws IOException
IOException
private static void lock(List<RegionStateNode> regionNodes)
private static void unlock(List<RegionStateNode> regionNodes)
static TransitRegionStateProcedure[] createUnassignProceduresForSplitOrMerge(MasterProcedureEnv env, Stream<RegionInfo> regions, int regionReplication) throws IOException
IOException
private static TransitRegionStateProcedure[] createAssignProcedures(MasterProcedureEnv env, List<RegionInfo> regions, int regionReplication, ServerName targetServer, boolean ignoreIfInTransition)
regionReplication
.
For rolling back, we will submit procedures directly to the ProcedureExecutor
, so it is
possible that we persist the newly scheduled procedures, and then crash before persisting the
rollback state, so when we arrive here the second time, it is possible that some regions have
already been associated with a TRSP.ignoreIfInTransition
- if true, will skip creating TRSP for the given region if it is
already in transition, otherwise we will add an assert that it should not in
transition.static TransitRegionStateProcedure[] createAssignProceduresForOpeningNewRegions(MasterProcedureEnv env, List<RegionInfo> regions, int regionReplication, ServerName targetServer)
static void reopenRegionsForRollback(MasterProcedureEnv env, List<RegionInfo> regions, int regionReplication, ServerName targetServer)
static void removeNonDefaultReplicas(MasterProcedureEnv env, Stream<RegionInfo> regions, int regionReplication)
static void checkClosedRegion(MasterProcedureEnv env, RegionInfo regionInfo) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.