public class TestHRegion extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
TestHRegion.FlushThread |
static class |
TestHRegion.HRegionForTesting
The same as HRegion class, the only difference is that instantiateHStore will
create a different HStore - HStoreForTesting.
|
static class |
TestHRegion.HStoreForTesting
HStoreForTesting is merely the same as HStore, the difference is in the doCompaction method
of HStoreForTesting there is a checkpoint "hbase.hstore.compaction.complete" which
doesn't let hstore compaction complete.
|
protected class |
TestHRegion.PutThread |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
static org.apache.hadoop.conf.Configuration |
CONF |
protected String |
method |
protected MetricsAssertHelper |
metricsAssertHelper |
org.junit.rules.TestName |
name |
protected byte[] |
qual |
protected byte[] |
qual1 |
protected byte[] |
qual2 |
protected byte[] |
qual3 |
protected byte[] |
row |
protected byte[] |
row2 |
protected TableName |
tableName |
protected static HBaseTestingUtility |
TEST_UTIL |
org.junit.rules.ExpectedException |
thrown |
protected byte[] |
value |
protected byte[] |
value1 |
protected byte[] |
value2 |
| Constructor and Description |
|---|
TestHRegion() |
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
public final org.junit.rules.ExpectedException thrown
protected static HBaseTestingUtility TEST_UTIL
public static org.apache.hadoop.conf.Configuration CONF
protected final byte[] qual
protected final byte[] qual1
protected final byte[] qual2
protected final byte[] qual3
protected final byte[] value
protected final byte[] value1
protected final byte[] value2
protected final byte[] row
protected final byte[] row2
protected final MetricsAssertHelper metricsAssertHelper
public TestHRegion()
public void setup() throws IOException
IOExceptionpublic void testSequenceId() throws IOException
IOExceptionpublic void testCloseCarryingSnapshot() throws IOException
IOExceptionpublic void testMemstoreSnapshotSize() throws IOException
IOExceptionpublic void testMemstoreSizeAccountingWithFailedPostBatchMutate() throws IOException
IOExceptionpublic void testFlushAndMemstoreSizeCounting() throws Exception
Exception - Exceptionpublic void testFlushSizeAccounting() throws Exception
Exceptionpublic void testCloseWithFailingFlush() throws Exception
Exceptionpublic void testCompactionAffectedByScanners() throws Exception
Exceptionpublic void testToShowNPEOnRegionScannerReseek() throws Exception
Exceptionpublic void testSkipRecoveredEditsReplay() throws Exception
Exceptionpublic void testSkipRecoveredEditsReplaySomeIgnored() throws Exception
Exceptionpublic void testSkipRecoveredEditsReplayAllIgnored() throws Exception
Exceptionpublic void testSkipRecoveredEditsReplayTheLastFileIgnored() throws Exception
Exceptionpublic void testRecoveredEditsReplayCompaction() throws Exception
Exceptionpublic void testRecoveredEditsReplayCompaction(boolean mismatchedRegionName) throws Exception
Exceptionpublic void testFlushMarkers() throws Exception
Exceptionpublic void testFlushMarkersWALFail() throws Exception
Exceptionpublic void testGetWhileRegionClose() throws IOException
IOExceptionpublic void testWeirdCacheBehaviour() throws Exception
Exceptionpublic void testAppendWithReadOnlyTable() throws Exception
Exceptionpublic void testIncrWithReadOnlyTable() throws Exception
Exceptionpublic void testFamilyWithAndWithoutColon() throws Exception
Exceptionpublic void testBatchPut_whileNoRowLocksHeld() throws IOException
IOExceptionpublic void testBatchPut_whileMultipleRowLocksHeld() throws Exception
Exceptionpublic void testAtomicBatchPut() throws IOException
IOExceptionpublic void testBatchPutWithTsSlop() throws Exception
Exceptionpublic void testCheckAndMutate_WithEmptyRowValue() throws IOException
IOExceptionpublic void testCheckAndMutate_WithWrongValue() throws IOException
IOExceptionpublic void testCheckAndMutate_WithCorrectValue() throws IOException
IOExceptionpublic void testCheckAndMutate_WithNonEqualCompareOp() throws IOException
IOExceptionpublic void testCheckAndPut_ThatPutWasWritten() throws IOException
IOExceptionpublic void testCheckAndPut_wrongRowInPut() throws IOException
IOExceptionpublic void testCheckAndDelete_ThatDeleteWasWritten() throws IOException
IOExceptionpublic void testDelete_multiDeleteColumn() throws IOException
IOExceptionpublic void testDelete_CheckFamily() throws IOException
IOExceptionpublic void testDelete_mixed() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testDeleteRowWithFutureTs() throws IOException
IOExceptionpublic void testPutWithLatestTS() throws IOException
IOExceptionpublic void testPutWithTsSlop() throws IOException
IOExceptionpublic void testScanner_DeleteOneFamilyNotAnother() throws IOException
IOExceptionpublic void testDataInMemoryWithoutWAL() throws IOException
IOExceptionpublic void testDeleteColumns_PostInsert() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testaddFamily_PostInsert() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void doTestDelete_AndPostInsert(Delete delete) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testDelete_CheckTimestampUpdated() throws IOException
IOExceptionpublic void testGet_FamilyChecker() throws IOException
IOExceptionpublic void testGet_Basic() throws IOException
IOExceptionpublic void testGet_Empty() throws IOException
IOExceptionpublic void testGetWithFilter() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void testGetScanner_WithOkFamilies() throws IOException
IOExceptionpublic void testGetScanner_WithNotOkFamilies() throws IOException
IOExceptionpublic void testGetScanner_WithNoFamilies() throws IOException
IOExceptionpublic void testGetScanner_WithRegionClosed() throws IOException
IOExceptionpublic void testRegionScanner_Next() throws IOException
IOExceptionpublic void testScanner_ExplicitColumns_FromMemStore_EnforceVersions() throws IOException
IOExceptionpublic void testScanner_ExplicitColumns_FromFilesOnly_EnforceVersions() throws IOException
IOExceptionpublic void testScanner_ExplicitColumns_FromMemStoreAndFiles_EnforceVersions() throws IOException
IOExceptionpublic void testScanner_Wildcard_FromMemStore_EnforceVersions() throws IOException
IOExceptionpublic void testScanner_Wildcard_FromFilesOnly_EnforceVersions() throws IOException
IOExceptionpublic void testScanner_StopRow1542() throws IOException
IOExceptionpublic void testScanner_Wildcard_FromMemStoreAndFiles_EnforceVersions() throws IOException
IOExceptionpublic void testScanner_JoinedScanners() throws IOException
IOExceptionpublic void testScanner_JoinedScannersWithLimits() throws IOException
IOExceptionpublic void testLongQualifier() throws Exception
Exceptionpublic void testFlushCacheWhileScanning() throws IOException, InterruptedException
IOException - scan / compactInterruptedException - thread joinpublic void testWritesWhileScanning() throws IOException, InterruptedException
IOException - by flush / scan / compactionInterruptedException - when joining threadspublic void testWritesWhileGetting() throws Exception
IOException - by flush / scan / compactionInterruptedException - when joining threadsExceptionpublic void testHolesInMeta() throws Exception
Exceptionpublic void testIndexesScanWithOneDeletedRow() throws IOException
IOExceptionpublic void testBloomFilterSize() throws IOException
IOExceptionpublic void testAllColumnsWithBloomFilter() throws IOException
IOExceptionpublic void testDeleteRowWithBloomFilter() throws IOException
IOExceptionpublic void testgetHDFSBlocksDistribution() throws Exception
Exceptionpublic void testStatusSettingToAbortIfAnyExceptionDuringRegionInitilization() throws Exception
Exceptionpublic void testRegionInfoFileCreation() throws IOException
IOExceptionpublic void testParallelIncrementWithMemStoreFlush() throws Exception
Exceptionpublic void testParallelAppendWithMemStoreFlush() throws Exception
Exceptionpublic void testPutWithMemStoreFlush() throws Exception
Exceptionpublic void testDurability() throws Exception
Exceptionpublic void testRegionReplicaSecondary() throws IOException
IOExceptionpublic void testRegionReplicaSecondaryIsReadOnly() throws IOException
IOExceptionpublic void testCompactionFromPrimary() throws IOException
IOExceptionprotected void assertScan(HRegion r, byte[] fs, byte[] firstValue) throws IOException
IOExceptionpublic void testFlushResult() throws IOException
IOExceptionprotected org.apache.hadoop.conf.Configuration initSplit()
protected HRegion initHRegion(TableName tableName, String callingMethod, org.apache.hadoop.conf.Configuration conf, byte[]... families) throws IOException
HBaseTestingUtility.closeRegionAndWAL(HRegion) when done.IOExceptionprotected HRegion initHRegion(TableName tableName, String callingMethod, org.apache.hadoop.conf.Configuration conf, boolean isReadOnly, byte[]... families) throws IOException
HBaseTestingUtility.closeRegionAndWAL(HRegion) when done.IOExceptionprotected HRegion initHRegion(TableName tableName, byte[] startKey, byte[] stopKey, String callingMethod, org.apache.hadoop.conf.Configuration conf, boolean isReadOnly, byte[]... families) throws IOException
IOExceptionpublic HRegion initHRegion(TableName tableName, byte[] startKey, byte[] stopKey, boolean isReadOnly, Durability durability, WAL wal, byte[]... families) throws IOException
HBaseTestingUtility.closeRegionAndWAL(HRegion) when done.IOExceptionpublic void testReverseScanner_FromMemStore_SingleCF_Normal() throws IOException
IOExceptionpublic void testReverseScanner_FromMemStore_SingleCF_LargerKey() throws IOException
IOExceptionpublic void testReverseScanner_FromMemStore_SingleCF_FullScan() throws IOException
IOExceptionpublic void testReverseScanner_moreRowsMayExistAfter() throws IOException
IOExceptionpublic void testReverseScanner_smaller_blocksize() throws IOException
IOExceptionpublic void testReverseScanner_FromMemStoreAndHFiles_MultiCFs1() throws IOException
IOExceptionpublic void testReverseScanner_FromMemStoreAndHFiles_MultiCFs2() throws IOException
IOExceptionpublic void testReverseScanner_StackOverflow() throws IOException
IOExceptionpublic void testReverseScanShouldNotScanMemstoreIfReadPtLesser() throws Exception
Exceptionpublic void testReverseScanWhenPutCellsAfterOpenReverseScan() throws Exception
Exceptionpublic void testWriteRequestsCounter() throws IOException
IOExceptionpublic void testOpenRegionWrittenToWAL() throws Exception
Exceptionpublic void testFlushedFileWithNoTags() throws Exception
Exceptionpublic void testCloseRegionWrittenToWAL() throws Exception
Exceptionpublic void testRegionTooBusy() throws IOException
IOExceptionpublic void testCellTTLs() throws IOException
IOExceptionpublic void testIncrementTimestampsAreMonotonic() throws IOException
IOExceptionpublic void testAppendTimestampsAreMonotonic() throws IOException
IOExceptionpublic void testCheckAndMutateTimestampsAreMonotonic() throws IOException
IOExceptionpublic void testBatchMutateWithWrongRegionException() throws Exception
Exceptionpublic void testCheckAndRowMutateTimestampsAreMonotonic() throws IOException
IOExceptionpublic void testWritesWhileRollWriter() throws IOException
IOException - if IO error occurred during testpublic void testMutateRow_WriteRequestCount() throws Exception
Exceptionpublic void testBulkLoadReplicationEnabled() throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.