Class TestLockManager
java.lang.Object
org.apache.hadoop.hbase.master.locking.TestLockManager
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final int
private static final org.slf4j.Logger
private static org.apache.hadoop.hbase.master.MasterServices
private static String
private static org.apache.hadoop.hbase.TableName
private static org.apache.hadoop.hbase.client.RegionInfo[]
org.junit.rules.TestName
protected static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
private org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv>
static void
private static void
setupConf
(org.apache.hadoop.conf.Configuration conf) void
tearDown()
void
Tests that basic lock functionality works.void
Two locks try to acquire lock on same table, assert that later one times out.void
Take 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
-