Class TestStoreFileTrackerBaseReadOnlyMode
java.lang.Object
org.apache.hadoop.hbase.TestRefreshHFilesBase
org.apache.hadoop.hbase.regionserver.storefiletracker.TestStoreFileTrackerBaseReadOnlyMode
@Tag("org.apache.hadoop.hbase.testclassification.RegionServerTests") @Tag("org.apache.hadoop.hbase.testclassification.SmallTests")
public class TestStoreFileTrackerBaseReadOnlyMode
extends TestRefreshHFilesBase
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.hadoop.hbase.TableNameFields inherited from class org.apache.hadoop.hbase.TestRefreshHFilesBase
admin, cluster, conf, master, procExecutor, TEST_FAMILY, TEST_NAMESPACE, TEST_TABLE, TEST_UTIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertIllegalStateThrown(org.apache.hadoop.hbase.TableName tableName) private voidassertNoIllegalStateThrown(org.apache.hadoop.hbase.TableName tableName) private org.apache.hadoop.hbase.regionserver.CreateStoreFileWriterParamsvoidsetup()voidtearDown()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidverifyAddInReadOnlyMode(boolean readOnlyMode, org.apache.hadoop.hbase.TableName table, boolean expectAddExecuted, String msg) private voidverifyLoadInReadOnlyMode(boolean readOnlyMode, org.apache.hadoop.hbase.TableName table, boolean expectReadOnly, String msg) private voidverifyReplaceInReadOnlyMode(boolean readOnlyMode, org.apache.hadoop.hbase.TableName table, boolean expectCompactionExecuted, String msg) private voidverifySetInReadOnlyMode(boolean readOnlyMode, org.apache.hadoop.hbase.TableName table, boolean expectSetExecuted, String msg) Methods inherited from class org.apache.hadoop.hbase.TestRefreshHFilesBase
baseSetup, baseTearDown, createNamespace, createTableAndWait, createTableInNamespaceAndWait, deleteNamespace, deleteTable, setReadOnlyMode, submitProcedureAndAssertNotFailed
-
Field Details
-
tracker
-
tableName
org.apache.hadoop.hbase.TableName tableName
-
-
Constructor Details
-
TestStoreFileTrackerBaseReadOnlyMode
public TestStoreFileTrackerBaseReadOnlyMode()
-
-
Method Details
-
setup
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
verifyLoadInReadOnlyMode
private void verifyLoadInReadOnlyMode(boolean readOnlyMode, org.apache.hadoop.hbase.TableName table, boolean expectReadOnly, String msg) throws Exception - Throws:
Exception
-
testLoadNonWritableTableWhenGlobalReadOnlyEnabled
- Throws:
Exception
-
testLoadMetaTableWhenGlobalReadOnlyEnabled
- Throws:
Exception
-
testLoadMasterStoreTableWhenGlobalReadOnlyEnabled
- Throws:
Exception
-
testLoadWhenGlobalReadOnlyDisabled
- Throws:
Exception
-
verifyReplaceInReadOnlyMode
private void verifyReplaceInReadOnlyMode(boolean readOnlyMode, org.apache.hadoop.hbase.TableName table, boolean expectCompactionExecuted, String msg) -
testReplaceSkippedForNonWritableTableWhenGlobalReadOnlyEnabled
- Throws:
Exception
-
testReplaceExecutedForMetaTableWhenGlobalReadOnlyEnabled
- Throws:
Exception
-
testReplaceExecutedForMasterStoreTableWhenGlobalReadOnlyEnabled
@Test public void testReplaceExecutedForMasterStoreTableWhenGlobalReadOnlyEnabled() throws Exception- Throws:
Exception
-
testReplaceExecutedWhenGlobalReadOnlyDisabled
- Throws:
Exception
-
verifyAddInReadOnlyMode
private void verifyAddInReadOnlyMode(boolean readOnlyMode, org.apache.hadoop.hbase.TableName table, boolean expectAddExecuted, String msg) -
testAddSkippedForNonWritableTableWhenGlobalReadOnlyEnabled
- Throws:
Exception
-
testAddExecutedForMetaTableWhenGlobalReadOnlyEnabled
- Throws:
Exception
-
testAddExecutedForMasterStoreTableWhenGlobalReadOnlyEnabled
- Throws:
Exception
-
testAddExecutedWhenGlobalReadOnlyDisabled
- Throws:
Exception
-
verifySetInReadOnlyMode
private void verifySetInReadOnlyMode(boolean readOnlyMode, org.apache.hadoop.hbase.TableName table, boolean expectSetExecuted, String msg) -
testSetSkippedForNonWritableTableWhenGlobalReadOnlyEnabled
- Throws:
Exception
-
testSetExecutedForMetaTableWhenGlobalReadOnlyEnabled
- Throws:
Exception
-
testSetExecutedForMasterStoreTableWhenGlobalReadOnlyEnabled
- Throws:
Exception
-
testSetExecutedWhenGlobalReadOnlyDisabled
- Throws:
Exception
-
createParams
-
assertIllegalStateThrown
-
assertNoIllegalStateThrown
-
testCreateWriterThrowExceptionWhenGlobalReadOnlyEnabled
- Throws:
Exception
-
testCreateWriterNoExceptionMetaTableWhenGlobalReadOnlyEnabled
- Throws:
Exception
-
testCreateWriterNoExceptionMasterStoreTableWhenGlobalReadOnlyEnabled
@Test public void testCreateWriterNoExceptionMasterStoreTableWhenGlobalReadOnlyEnabled() throws Exception- Throws:
Exception
-