Class TestLockManager
java.lang.Object
org.apache.hadoop.hbase.master.locking.TestLockManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final intprivate static final org.slf4j.Loggerprivate static org.apache.hadoop.hbase.master.MasterServicesprivate static Stringprivate static org.apache.hadoop.hbase.TableNameprivate static org.apache.hadoop.hbase.client.RegionInfo[]org.junit.rules.TestNameprotected static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprivate org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>static voidprivate static voidsetupConf(org.apache.hadoop.conf.Configuration conf) voidtearDown()voidTests that basic lock functionality works.voidTwo locks try to acquire lock on same table, assert that later one times out.voidTake region lock, they try table exclusive lock, later one should time out.
-
Field Details
-
CLASS_RULE
-
testName
-
LOCAL_LOCKS_TIMEOUT
- See Also:
-
LOG
-
UTIL
-
masterServices
-
namespace
-
tableName
-
tableRegions
-
-
Constructor Details
-
TestLockManager
public TestLockManager()
-
-
Method Details
-
setupConf
-
setupCluster
- Throws:
Exception
-
cleanupTest
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
getMasterProcedureExecutor
private org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> getMasterProcedureExecutor() -
testMasterLockAcquire
Tests that basic lock functionality works.- Throws:
Exception
-
testMasterLockAcquireTimeout
Two locks try to acquire lock on same table, assert that later one times out.- Throws:
Exception
-
testMasterLockAcquireTimeoutRegionVsTableExclusive
Take region lock, they try table exclusive lock, later one should time out.- Throws:
Exception
-