Class TestStoreScannerClosure
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestStoreScannerClosure
This test tests whether parallel
StoreScanner.close() and
StoreScanner.updateReaders(List, List) works perfectly ensuring that there are no
references on the existing Storescanner readers.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.io.hfile.CacheConfigprivate static final byte[]private static final Stringstatic final HBaseClassTestRule(package private) static org.apache.hadoop.conf.Configurationprivate static final byte[]private static org.apache.hadoop.fs.FileSystemprivate static final org.apache.hadoop.hbase.KeyValue[]private static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static final intprivate static org.apache.hadoop.hbase.regionserver.HRegionprivate org.apache.hadoop.hbase.regionserver.ScanInfoprivate static final HBaseTestingUtil -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.hbase.KeyValue.TypegenerateKeyType(Random rand) (package private) NavigableSet<byte[]>private org.apache.hadoop.hbase.regionserver.HStoreFilereadStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileInfo fileinfo) static voidsetUp()private voidtestScannerCloseAndUpdateReaderInternal(boolean awaitUpdate, boolean awaitClose) voidvoidvoidprivate org.apache.hadoop.fs.Path
-
Field Details
-
CLASS_RULE
-
LOG
-
NUM_VALID_KEY_TYPES
-
name
-
CF_STR
- See Also:
-
region
-
CF
-
CONF
-
cacheConf
-
fs
-
TEST_UTIL
-
scanInfo
-
fam
-
kvs
-
-
Constructor Details
-
TestStoreScannerClosure
public TestStoreScannerClosure()
-
-
Method Details
-
setUp
- Throws:
Exception
-
testScannerCloseAndUpdateReadersWithMemstoreScanner
- Throws:
Exception
-
testScannerCloseAndUpdateReaders1
- Throws:
Exception
-
testScannerCloseAndUpdateReaders2
- Throws:
Exception
-
writeStoreFile
- Throws:
IOException
-
generateKeyType
-
readStoreFile
private org.apache.hadoop.hbase.regionserver.HStoreFile readStoreFile(org.apache.hadoop.hbase.regionserver.StoreFileInfo fileinfo) throws Exception - Throws:
Exception
-
testScannerCloseAndUpdateReaderInternal
private void testScannerCloseAndUpdateReaderInternal(boolean awaitUpdate, boolean awaitClose) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getCols
-