Class TestHStore.MyCompactingMemStore5
java.lang.Object
org.apache.hadoop.hbase.regionserver.AbstractMemStore
org.apache.hadoop.hbase.regionserver.CompactingMemStore
org.apache.hadoop.hbase.regionserver.TestHStore.MyCompactingMemStore5
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hadoop.hbase.regionserver.MemStore
- Enclosing class:
- TestHStore
public static class TestHStore.MyCompactingMemStore5
extends org.apache.hadoop.hbase.regionserver.CompactingMemStore
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.regionserver.CompactingMemStore
org.apache.hadoop.hbase.regionserver.CompactingMemStore.IndexType
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AtomicInteger
private final CyclicBarrier
Only afterCompactingMemStore.flattenOneSegment(long, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action)
completed,CompactingMemStore.swapPipelineWithNull(org.apache.hadoop.hbase.regionserver.VersionedSegmentsList)
could execute.private final CyclicBarrier
CompactingMemStore.flattenOneSegment(long, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action)
must execute afterCompactingMemStore.getImmutableSegments()
private final AtomicInteger
private final CyclicBarrier
To wait forCompactingMemStore.InMemoryCompactionRunnable
stopping.private final AtomicInteger
private final CyclicBarrier
Only the in memory compact thread entersCompactingMemStore.flattenOneSegment(long, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action)
,the snapshot thread startsCompactingMemStore.snapshot()
,becauseCompactingMemStore.snapshot()
would invokeCompactingMemStore.stopCompaction()
.private final AtomicInteger
private static final String
private static final String
private final CyclicBarrier
This is used for snapshot thread,writeAgain thread and in memory compact thread.private final CyclicBarrier
Only the snapshot thread retryCompactingMemStore.swapPipelineWithNull(org.apache.hadoop.hbase.regionserver.VersionedSegmentsList)
, writeAgain thread could start.Fields inherited from class org.apache.hadoop.hbase.regionserver.CompactingMemStore
allowCompaction, COMPACTING_MEMSTORE_TYPE_DEFAULT, COMPACTING_MEMSTORE_TYPE_KEY, compactor, DEEP_OVERHEAD, IN_MEMORY_CONPACTION_POOL_SIZE_DEFAULT, IN_MEMORY_CONPACTION_POOL_SIZE_KEY, IN_MEMORY_FLUSH_THRESHOLD_FACTOR_KEY
Fields inherited from class org.apache.hadoop.hbase.regionserver.AbstractMemStore
FIXED_OVERHEAD, regionServices, snapshot, snapshotId
-
Constructor Summary
ConstructorDescriptionMyCompactingMemStore5
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.CellComparatorImpl cellComparator, org.apache.hadoop.hbase.regionserver.HStore store, org.apache.hadoop.hbase.regionserver.RegionServicesForStores regionServices, org.apache.hadoop.hbase.MemoryCompactionPolicy compactionPolicy) -
Method Summary
Modifier and TypeMethodDescriptionvoid
flattenOneSegment
(long requesterVersion, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action action) org.apache.hadoop.hbase.regionserver.VersionedSegmentsList
(package private) void
protected boolean
protected boolean
swapPipelineWithNull
(org.apache.hadoop.hbase.regionserver.VersionedSegmentsList segments) Methods inherited from class org.apache.hadoop.hbase.regionserver.CompactingMemStore
checkAndAddToActiveSize, createList, createMemStoreCompactor, debug, flushInMemory, flushInMemory, getFamilyName, getFlushableSize, getIndexType, getInmemoryFlushSize, getNextRow, getScanners, getSegments, getSmallestReadPoint, getStore, hasImmutableSegments, heapSize, isMemStoreFlushingInMemory, isSloppy, keySize, postUpdate, preFlushSeqIDEstimation, preUpdate, pushActiveToPipeline, setCompositeSnapshot, setIndexType, setInMemoryCompactionCompleted, size, sizeAddedPreOperation, snapshot, startReplayingFromWAL, stopReplayingFromWAL, swapCompactedSegments, updateLowestUnflushedSequenceIdInWAL
Methods inherited from class org.apache.hadoop.hbase.regionserver.AbstractMemStore
add, add, addToScanners, addToScanners, clearSnapshot, close, doAdd, doClearSnapShot, dump, getActive, getComparator, getConfiguration, getLowest, getNextRow, getSnapshot, getSnapshotSize, resetActive, resetTimeOfOldestEdit, timeOfOldestEdit, toString, upsert
-
Field Details
-
TAKE_SNAPSHOT_THREAD_NAME
- See Also:
-
WRITE_AGAIN_THREAD_NAME
- See Also:
-
flattenOneSegmentPreCyclicBarrier
CompactingMemStore.flattenOneSegment(long, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action)
must execute afterCompactingMemStore.getImmutableSegments()
-
flattenOneSegmentPostCyclicBarrier
Only afterCompactingMemStore.flattenOneSegment(long, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action)
completed,CompactingMemStore.swapPipelineWithNull(org.apache.hadoop.hbase.regionserver.VersionedSegmentsList)
could execute. -
snapShotStartCyclicCyclicBarrier
Only the in memory compact thread entersCompactingMemStore.flattenOneSegment(long, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action)
,the snapshot thread startsCompactingMemStore.snapshot()
,becauseCompactingMemStore.snapshot()
would invokeCompactingMemStore.stopCompaction()
. -
inMemoryCompactionEndCyclicBarrier
To wait forCompactingMemStore.InMemoryCompactionRunnable
stopping. -
getImmutableSegmentsListCounter
-
swapPipelineWithNullCounter
-
flattenOneSegmentCounter
-
setInMemoryCompactionFlagCounter
-
writeMemStoreAgainStartCyclicBarrier
Only the snapshot thread retryCompactingMemStore.swapPipelineWithNull(org.apache.hadoop.hbase.regionserver.VersionedSegmentsList)
, writeAgain thread could start. -
writeMemStoreAgainEndCyclicBarrier
This is used for snapshot thread,writeAgain thread and in memory compact thread. Only the writeAgain thread completes,CompactingMemStore.swapPipelineWithNull(org.apache.hadoop.hbase.regionserver.VersionedSegmentsList)
would execute,and in memory compact thread would exit,because we expect that in memory compact executing only once.
-
-
Constructor Details
-
MyCompactingMemStore5
public MyCompactingMemStore5(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.CellComparatorImpl cellComparator, org.apache.hadoop.hbase.regionserver.HStore store, org.apache.hadoop.hbase.regionserver.RegionServicesForStores regionServices, org.apache.hadoop.hbase.MemoryCompactionPolicy compactionPolicy) throws IOException - Throws:
IOException
-
-
Method Details
-
getImmutableSegments
- Overrides:
getImmutableSegments
in classorg.apache.hadoop.hbase.regionserver.CompactingMemStore
-
swapPipelineWithNull
protected boolean swapPipelineWithNull(org.apache.hadoop.hbase.regionserver.VersionedSegmentsList segments) - Overrides:
swapPipelineWithNull
in classorg.apache.hadoop.hbase.regionserver.CompactingMemStore
-
flattenOneSegment
public void flattenOneSegment(long requesterVersion, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action action) - Overrides:
flattenOneSegment
in classorg.apache.hadoop.hbase.regionserver.CompactingMemStore
-
setInMemoryCompactionFlag
- Overrides:
setInMemoryCompactionFlag
in classorg.apache.hadoop.hbase.regionserver.CompactingMemStore
-
inMemoryCompaction
void inMemoryCompaction()- Overrides:
inMemoryCompaction
in classorg.apache.hadoop.hbase.regionserver.CompactingMemStore
-