Class TestHBCKSCP
java.lang.Object
org.apache.hadoop.hbase.master.procedure.TestSCPBase
org.apache.hadoop.hbase.master.procedure.TestHBCKSCP
Test of the HBCK-version of SCP. The HBCKSCP is an SCP only it reads hbase:meta for list of
Regions that were on the server-to-process rather than consult Master in-memory-state.
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
Encapsulates the choice of which HBCK2 method to call.private static class
Selects a non-meta region that is also a primary region.private static class
Encapsulates how the target region is selected.private static class
Selects a non-meta region that is also a replica region.private static class
InvokesMasterRpcServices#scheduleSCPsForUnknownServers
.private static class
InvokesMasterRpcServices#scheduleServerCrashProcedure
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private final TestHBCKSCP.HBCKSCPScheduler
private static final org.slf4j.Logger
private final TestHBCKSCP.RegionSelector
private final int
Fields inherited from class org.apache.hadoop.hbase.master.procedure.TestSCPBase
RS_COUNT, util
-
Constructor Summary
ConstructorDescriptionTestHBCKSCP
(int replicas, TestHBCKSCP.HBCKSCPScheduler hbckscpScheduler, TestHBCKSCP.RegionSelector regionSelector) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
static Object[][]
params()
protected long
scheduleHBCKSCP
(org.apache.hadoop.hbase.ServerName rsServerName, org.apache.hadoop.hbase.master.HMaster master) private boolean
searchMeta
(org.apache.hadoop.hbase.master.HMaster master, org.apache.hadoop.hbase.ServerName sn) Returns True if we find reference tosn
in meta table.void
test()
Methods inherited from class org.apache.hadoop.hbase.master.procedure.TestSCPBase
createTable, getSCPProcId, setup, setupConf, startMiniCluster, tearDown, testRecoveryAndDoubleExecution
-
Field Details
-
LOG
-
CLASS_RULE
-
tableNameTestRule
-
replicas
-
hbckscpScheduler
-
regionSelector
-
-
Constructor Details
-
TestHBCKSCP
public TestHBCKSCP(int replicas, TestHBCKSCP.HBCKSCPScheduler hbckscpScheduler, TestHBCKSCP.RegionSelector regionSelector)
-
-
Method Details
-
params
-
test
- Throws:
Exception
-
scheduleHBCKSCP
protected long scheduleHBCKSCP(org.apache.hadoop.hbase.ServerName rsServerName, org.apache.hadoop.hbase.master.HMaster master) throws org.apache.hbase.thirdparty.com.google.protobuf.ServiceException - Throws:
org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
-
getRegionReplication
- Overrides:
getRegionReplication
in classTestSCPBase
-
searchMeta
private boolean searchMeta(org.apache.hadoop.hbase.master.HMaster master, org.apache.hadoop.hbase.ServerName sn) throws IOException Returns True if we find reference tosn
in meta table.- Throws:
IOException
-