Class TestReadOnlyManageActiveClusterFile
java.lang.Object
org.apache.hadoop.hbase.security.access.TestReadOnlyManageActiveClusterFile
@Tag("org.apache.hadoop.hbase.testclassification.SecurityTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestReadOnlyManageActiveClusterFile
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.hadoop.fs.Pathprivate static org.apache.hadoop.conf.Configuration(package private) org.apache.hadoop.fs.FileSystemprivate static final org.slf4j.Logger(package private) org.apache.hadoop.hbase.master.HMaster(package private) org.apache.hadoop.hbase.master.MasterFileSystemprivate static final int(package private) org.apache.hadoop.hbase.regionserver.HRegionServer(package private) org.apache.hadoop.fs.Pathprivate final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanprivate voidprivate voidprivate voidsetReadOnlyMode(boolean enabled) voidsetup()voidtearDown()voidvoidvoidvoid
-
Field Details
-
LOG
-
TEST_UTIL
-
NUM_RS
- See Also:
-
conf
-
master
org.apache.hadoop.hbase.master.HMaster master -
regionServer
org.apache.hadoop.hbase.regionserver.HRegionServer regionServer -
mfs
org.apache.hadoop.hbase.master.MasterFileSystem mfs -
rootDir
org.apache.hadoop.fs.Path rootDir -
fs
org.apache.hadoop.fs.FileSystem fs -
activeClusterFile
org.apache.hadoop.fs.Path activeClusterFile
-
-
Constructor Details
-
TestReadOnlyManageActiveClusterFile
public TestReadOnlyManageActiveClusterFile()
-
-
Method Details
-
setup
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
setReadOnlyMode
-
restartCluster
- Throws:
IOExceptionInterruptedException
-
overwriteExistingFile
- Throws:
IOException
-
activeClusterIdFileExists
- Throws:
IOException
-
testActiveClusterIdFileCreationWhenReadOnlyDisabled
@Test public void testActiveClusterIdFileCreationWhenReadOnlyDisabled() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
testActiveClusterIdFileDeletionWhenReadOnlyEnabled
@Test public void testActiveClusterIdFileDeletionWhenReadOnlyEnabled() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
testDeleteActiveClusterIdFileWhenSwitchingToReadOnlyIfOwnedByCluster
@Test public void testDeleteActiveClusterIdFileWhenSwitchingToReadOnlyIfOwnedByCluster() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
testDoNotDeleteActiveClusterIdFileWhenSwitchingToReadOnlyIfNotOwnedByCluster
@Test public void testDoNotDeleteActiveClusterIdFileWhenSwitchingToReadOnlyIfNotOwnedByCluster() throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-