public class TestLockManager extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static int |
LOCAL_LOCKS_TIMEOUT |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.hbase.master.MasterServices |
masterServices |
private static String |
namespace |
private static org.apache.hadoop.hbase.TableName |
tableName |
private static org.apache.hadoop.hbase.HRegionInfo[] |
tableRegions |
org.junit.rules.TestName |
testName |
protected static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestLockManager() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanupTest() |
private org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> |
getMasterProcedureExecutor() |
static void |
setupCluster() |
private static void |
setupConf(org.apache.hadoop.conf.Configuration conf) |
void |
tearDown() |
void |
testMasterLockAcquire()
Tests that basic lock functionality works.
|
void |
testMasterLockAcquireTimeout()
Two locks try to acquire lock on same table, assert that later one times out.
|
void |
testMasterLockAcquireTimeoutRegionVsTableExclusive()
Take region lock, they try table exclusive lock, later one should time out.
|
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName testName
private static final int LOCAL_LOCKS_TIMEOUT
private static final org.slf4j.Logger LOG
protected static final HBaseTestingUtility UTIL
private static org.apache.hadoop.hbase.master.MasterServices masterServices
private static org.apache.hadoop.hbase.TableName tableName
private static org.apache.hadoop.hbase.HRegionInfo[] tableRegions
public TestLockManager()
private static void setupConf(org.apache.hadoop.conf.Configuration conf)
public static void setupCluster() throws Exception
Exception
public static void cleanupTest() throws Exception
Exception
private org.apache.hadoop.hbase.procedure2.ProcedureExecutor<org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv> getMasterProcedureExecutor()
public void testMasterLockAcquire() throws Exception
Exception
public void testMasterLockAcquireTimeout() throws Exception
Exception
public void testMasterLockAcquireTimeoutRegionVsTableExclusive() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.