Package org.apache.hadoop.hbase.snapshot
Class TestSnapshotWhenChoreCleaning
java.lang.Object
org.apache.hadoop.hbase.snapshot.TestSnapshotWhenChoreCleaning
Test Case for HBASE-21387
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.apache.hadoop.conf.Configuration
private static final byte[]
private static final org.slf4j.Logger
private static final int
private static final byte[]
private static org.apache.hadoop.hbase.client.Table
private static final org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtil
private static final byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
private static byte[]
integerToBytes
(int i) private static boolean
isAnySnapshots
(org.apache.hadoop.fs.FileSystem fs) private static List<org.apache.hadoop.fs.Path>
listHFileNames
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tableDir) private static void
static void
setUp()
static void
tearDown()
void
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
CONF
-
LOG
-
TABLE_NAME
-
MAX_SPLIT_KEYS_NUM
- See Also:
-
FAMILY
-
QUALIFIER
-
VALUE
-
TABLE
-
testTable
-
-
Constructor Details
-
TestSnapshotWhenChoreCleaning
public TestSnapshotWhenChoreCleaning()
-
-
Method Details
-
setUp
- Throws:
Exception
-
integerToBytes
-
createTable
- Throws:
IOException
-
tearDown
- Throws:
Exception
-
loadDataAndFlush
- Throws:
IOException
-
listHFileNames
private static List<org.apache.hadoop.fs.Path> listHFileNames(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tableDir) throws IOException - Throws:
IOException
-
isAnySnapshots
- Throws:
IOException
-
testSnapshotWhenSnapshotHFileCleanerRunning
- Throws:
Exception
-