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
Modifier and TypeClassDescriptionprivate static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.io.hfile.CacheConfig
private static final byte[]
private static final String
static final HBaseClassTestRule
(package private) static org.apache.hadoop.conf.Configuration
private static final byte[]
private static org.apache.hadoop.fs.FileSystem
private static final org.apache.hadoop.hbase.KeyValue[]
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final int
private static org.apache.hadoop.hbase.regionserver.HRegion
private org.apache.hadoop.hbase.regionserver.ScanInfo
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.hbase.KeyValue.Type
generateKeyType
(Random rand) (package private) NavigableSet<byte[]>
private org.apache.hadoop.hbase.regionserver.HStoreFile
readStoreFile
(org.apache.hadoop.hbase.regionserver.StoreFileInfo fileinfo) static void
setUp()
private void
testScannerCloseAndUpdateReaderInternal
(boolean awaitUpdate, boolean awaitClose) void
void
void
private 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:
IOException
InterruptedException
-
getCols
-