Class TestOpenRegionReportAfterFailoverToMasterWithClockBehind
java.lang.Object
org.apache.hadoop.hbase.master.assignment.TestOpenRegionReportAfterFailoverToMasterWithClockBehind
@Tag("org.apache.hadoop.hbase.testclassification.MasterTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestOpenRegionReportAfterFailoverToMasterWithClockBehind
extends Object
A region open started by one active master must still complete after a failover to a master whose
clock is behind, i.e. whose active time is lower than the active time sent with the open request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static CountDownLatchprivate static final byte[]private static org.apache.hadoop.hbase.master.MasterServicesThe master that holds OPENED reports for the table until RESUME.private static final org.apache.hadoop.hbase.TableNameprivate static CountDownLatchprivate static longHow far behind the clock of the next active master is, 0 for no skew.private static final AtomicIntegerprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.hbase.master.HMastergetNewActiveMaster(org.apache.hadoop.hbase.master.HMaster oldMaster) static voidsetUp()static voidtearDown()void
-
Field Details
-
UTIL
-
NAME
-
CF
-
ARRIVE
-
HOLDING_MASTER
The master that holds OPENED reports for the table until RESUME. -
RESUME
-
SKEW_MS
How far behind the clock of the next active master is, 0 for no skew. -
SKEWED_CALLS
-
-
Constructor Details
-
TestOpenRegionReportAfterFailoverToMasterWithClockBehind
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testOpenCompletesAfterFailoverToMasterWithClockBehind
- Throws:
Exception
-
getNewActiveMaster
private static org.apache.hadoop.hbase.master.HMaster getNewActiveMaster(org.apache.hadoop.hbase.master.HMaster oldMaster)
-