Package org.apache.hadoop.hbase.snapshot
Class TestSnapshotWhenChoreCleaning
java.lang.Object
org.apache.hadoop.hbase.snapshot.TestSnapshotWhenChoreCleaning
Test Case for HBASE-21387
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final org.apache.hadoop.conf.Configurationprivate static final byte[]private static final org.slf4j.Loggerprivate static final intprivate static final byte[]private static org.apache.hadoop.hbase.client.Tableprivate static final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtilityprivate static final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidprivate static byte[]integerToBytes(int i) private static booleanisAnySnapshots(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 voidstatic voidsetUp()static voidtearDown()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
-