public class TestStoreScannerClosure extends Object
StoreScanner.close()
and
StoreScanner.updateReaders(List, List)
works perfectly ensuring
that there are no references on the existing Storescanner readers.Modifier and Type | Class and Description |
---|---|
private static class |
TestStoreScannerClosure.ExtendedStoreScanner |
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.io.hfile.CacheConfig |
cacheConf |
private static byte[] |
CF |
private static String |
CF_STR |
static HBaseClassTestRule |
CLASS_RULE |
(package private) static org.apache.hadoop.conf.Configuration |
CONF |
private static byte[] |
fam |
private static org.apache.hadoop.fs.FileSystem |
fs |
private static org.apache.hadoop.hbase.KeyValue[] |
kvs |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static int |
NUM_VALID_KEY_TYPES |
private static org.apache.hadoop.hbase.regionserver.HRegion |
region |
private static String |
ROOT_DIR |
private org.apache.hadoop.hbase.regionserver.ScanInfo |
scanInfo |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestStoreScannerClosure() |
Modifier and Type | Method and Description |
---|---|
private static org.apache.hadoop.hbase.KeyValue.Type |
generateKeyType(Random rand) |
(package private) NavigableSet<byte[]> |
getCols(String... strCols) |
private org.apache.hadoop.hbase.regionserver.HStoreFile |
readStoreFile(org.apache.hadoop.fs.Path storeFilePath,
org.apache.hadoop.conf.Configuration conf) |
static void |
setUp() |
private void |
testScannerCloseAndUpdateReaderInternal(boolean awaitUpdate,
boolean awaitClose) |
void |
testScannerCloseAndUpdateReaders1() |
void |
testScannerCloseAndUpdateReaders2() |
void |
testScannerCloseAndUpdateReadersWithMemstoreScanner() |
private org.apache.hadoop.fs.Path |
writeStoreFile() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final int NUM_VALID_KEY_TYPES
public org.junit.rules.TestName name
private static final String CF_STR
private static org.apache.hadoop.hbase.regionserver.HRegion region
private static final byte[] CF
static org.apache.hadoop.conf.Configuration CONF
private static org.apache.hadoop.hbase.io.hfile.CacheConfig cacheConf
private static org.apache.hadoop.fs.FileSystem fs
private static final HBaseTestingUtility TEST_UTIL
private org.apache.hadoop.hbase.regionserver.ScanInfo scanInfo
private static final byte[] fam
private static final org.apache.hadoop.hbase.KeyValue[] kvs
public TestStoreScannerClosure()
public void testScannerCloseAndUpdateReadersWithMemstoreScanner() throws Exception
Exception
public void testScannerCloseAndUpdateReaders1() throws Exception
Exception
public void testScannerCloseAndUpdateReaders2() throws Exception
Exception
private org.apache.hadoop.fs.Path writeStoreFile() throws IOException
IOException
private static org.apache.hadoop.hbase.KeyValue.Type generateKeyType(Random rand)
private org.apache.hadoop.hbase.regionserver.HStoreFile readStoreFile(org.apache.hadoop.fs.Path storeFilePath, org.apache.hadoop.conf.Configuration conf) throws Exception
Exception
private void testScannerCloseAndUpdateReaderInternal(boolean awaitUpdate, boolean awaitClose) throws IOException, InterruptedException
IOException
InterruptedException
NavigableSet<byte[]> getCols(String... strCols)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.