public static class TestHStore.MyCompactingMemStore5 extends org.apache.hadoop.hbase.regionserver.CompactingMemStore
Modifier and Type | Field and Description |
---|---|
private AtomicInteger |
flattenOneSegmentCounter |
private CyclicBarrier |
flattenOneSegmentPostCyclicBarrier
Only after
CompactingMemStore.flattenOneSegment(long, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action) completed,
CompactingMemStore.swapPipelineWithNull(org.apache.hadoop.hbase.regionserver.VersionedSegmentsList) could execute. |
private CyclicBarrier |
flattenOneSegmentPreCyclicBarrier
CompactingMemStore.flattenOneSegment(long, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action) must execute after
CompactingMemStore.getImmutableSegments() |
private AtomicInteger |
getImmutableSegmentsListCounter |
private CyclicBarrier |
inMemoryCompactionEndCyclicBarrier
To wait for
CompactingMemStore.InMemoryCompactionRunnable stopping. |
private AtomicInteger |
setInMemoryCompactionFlagCounter |
private CyclicBarrier |
snapShotStartCyclicCyclicBarrier
Only the in memory compact thread enters
CompactingMemStore.flattenOneSegment(long, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action) ,the
snapshot thread starts CompactingMemStore.snapshot() ,because
CompactingMemStore.snapshot() would invoke CompactingMemStore.stopCompaction() . |
private AtomicInteger |
swapPipelineWithNullCounter |
private static String |
TAKE_SNAPSHOT_THREAD_NAME |
private static String |
WRITE_AGAIN_THREAD_NAME |
private CyclicBarrier |
writeMemStoreAgainEndCyclicBarrier
This is used for snapshot thread,writeAgain thread and in memory compact thread.
|
private CyclicBarrier |
writeMemStoreAgainStartCyclicBarrier
Only the snapshot thread retry
CompactingMemStore.swapPipelineWithNull(org.apache.hadoop.hbase.regionserver.VersionedSegmentsList) , writeAgain
thread could start. |
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
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
void |
flattenOneSegment(long requesterVersion,
org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action action) |
org.apache.hadoop.hbase.regionserver.VersionedSegmentsList |
getImmutableSegments() |
(package private) void |
inMemoryCompaction() |
protected boolean |
setInMemoryCompactionFlag() |
protected boolean |
swapPipelineWithNull(org.apache.hadoop.hbase.regionserver.VersionedSegmentsList segments) |
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
add, add, addToScanners, addToScanners, clearSnapshot, doAdd, doClearSnapShot, dump, getActive, getComparator, getConfiguration, getLowest, getNextRow, getSnapshot, getSnapshotSize, resetActive, resetTimeOfOldestEdit, timeOfOldestEdit, toString, upsert
private static final String TAKE_SNAPSHOT_THREAD_NAME
private static final String WRITE_AGAIN_THREAD_NAME
private final CyclicBarrier flattenOneSegmentPreCyclicBarrier
CompactingMemStore.flattenOneSegment(long, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action)
must execute after
CompactingMemStore.getImmutableSegments()
private final CyclicBarrier flattenOneSegmentPostCyclicBarrier
CompactingMemStore.flattenOneSegment(long, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action)
completed,
CompactingMemStore.swapPipelineWithNull(org.apache.hadoop.hbase.regionserver.VersionedSegmentsList)
could execute.private final CyclicBarrier snapShotStartCyclicCyclicBarrier
CompactingMemStore.flattenOneSegment(long, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action)
,the
snapshot thread starts CompactingMemStore.snapshot()
,because
CompactingMemStore.snapshot()
would invoke CompactingMemStore.stopCompaction()
.private final CyclicBarrier inMemoryCompactionEndCyclicBarrier
CompactingMemStore.InMemoryCompactionRunnable
stopping.private final AtomicInteger getImmutableSegmentsListCounter
private final AtomicInteger swapPipelineWithNullCounter
private final AtomicInteger flattenOneSegmentCounter
private final AtomicInteger setInMemoryCompactionFlagCounter
private final CyclicBarrier writeMemStoreAgainStartCyclicBarrier
CompactingMemStore.swapPipelineWithNull(org.apache.hadoop.hbase.regionserver.VersionedSegmentsList)
, writeAgain
thread could start.private final CyclicBarrier writeMemStoreAgainEndCyclicBarrier
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.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
IOException
public org.apache.hadoop.hbase.regionserver.VersionedSegmentsList getImmutableSegments()
getImmutableSegments
in class org.apache.hadoop.hbase.regionserver.CompactingMemStore
protected boolean swapPipelineWithNull(org.apache.hadoop.hbase.regionserver.VersionedSegmentsList segments)
swapPipelineWithNull
in class org.apache.hadoop.hbase.regionserver.CompactingMemStore
public void flattenOneSegment(long requesterVersion, org.apache.hadoop.hbase.regionserver.MemStoreCompactionStrategy.Action action)
flattenOneSegment
in class org.apache.hadoop.hbase.regionserver.CompactingMemStore
protected boolean setInMemoryCompactionFlag()
setInMemoryCompactionFlag
in class org.apache.hadoop.hbase.regionserver.CompactingMemStore
void inMemoryCompaction()
inMemoryCompaction
in class org.apache.hadoop.hbase.regionserver.CompactingMemStore
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.