Package org.apache.hadoop.hbase.master
Class TestMaster
java.lang.Object
org.apache.hadoop.hbase.master.TestMaster
@Tag("org.apache.hadoop.hbase.testclassification.MasterTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestMaster
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Adminprivate static final byte[]private static final org.slf4j.Loggerprivate static final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtilprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidprivate org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.client.RegionInfo,org.apache.hadoop.hbase.ServerName> getTableRegionForRow(org.apache.hadoop.hbase.master.HMaster master, org.apache.hadoop.hbase.TableName tableName, byte[] rowKey) Return the region and current deployment for the region containing the given row.voidsetTestMethod(org.junit.jupiter.api.TestInfo testInfo) voidvoidvoidvoidvoidvoidvoid
-
Field Details
-
TEST_UTIL
-
LOG
-
TABLENAME
-
FAMILYNAME
-
admin
-
testMethodName
-
-
Constructor Details
-
TestMaster
public TestMaster()
-
-
Method Details
-
setTestMethod
-
beforeAllTests
- Throws:
Exception
-
afterAllTests
- Throws:
Exception
-
getTableRegionForRow
private org.apache.hadoop.hbase.util.Pair<org.apache.hadoop.hbase.client.RegionInfo,org.apache.hadoop.hbase.ServerName> getTableRegionForRow(org.apache.hadoop.hbase.master.HMaster master, org.apache.hadoop.hbase.TableName tableName, byte[] rowKey) throws IOException Return the region and current deployment for the region containing the given row. If the region cannot be found, returns null. If it is found, but not currently deployed, the second element of the pair may be null.- Throws:
IOException
-
testMasterOpsWhileSplitting
- Throws:
Exception
-
testMoveRegionWhenNotInitialized
-
testMoveThrowsUnknownRegionException
- Throws:
IOException
-
testMoveThrowsPleaseHoldException
- Throws:
IOException
-
testFlushedSequenceIdPersistLoad
- Throws:
Exception
-
testBlockingHbkc1WithLockFile
- Throws:
IOException
-
testInstallShutdownHook
- Throws:
IOException
-