@InterfaceAudience.Private public class FaultyMobStoreCompactor extends org.apache.hadoop.hbase.mob.DefaultMobStoreCompactor
{ @code public class SomeTest { public void initConfiguration(Configuration conf) { conf.set(MobStoreEngine.DEFAULT_MOB_COMPACTOR_CLASS_KEY, FaultyMobStoreCompactor.class.getName()); conf.setDouble("hbase.mob.compaction.fault.probability", 0.1); } } }
on how to use and configure this class.
org.apache.hadoop.hbase.regionserver.compactions.Compactor.CellSinkFactory<S>, org.apache.hadoop.hbase.regionserver.compactions.Compactor.FileDetails, org.apache.hadoop.hbase.regionserver.compactions.Compactor.InternalScannerFactory
Modifier and Type | Field and Description |
---|---|
(package private) static double |
failureProb |
private static org.slf4j.Logger |
LOG |
static AtomicLong |
mobCounter |
(package private) static Random |
rnd |
static AtomicLong |
totalCompactions |
static AtomicLong |
totalFailures |
static AtomicLong |
totalMajorCompactions |
disableIO, ioOptimizedMode, mobLengthMap, mobRefSet, mobSizeThreshold, mobStore, userRequest
COMPACTION_PROGRESS_LOG_INTERVAL, compactionKVMax, conf, defaultScannerFactory, dropCacheMajor, dropCacheMinor, keepSeqIdPeriod, MAJOR_COMPACTION_DROP_CACHE, majorCompactionCompression, MINOR_COMPACTION_DROP_CACHE, minorCompactionCompression, store
Constructor and Description |
---|
FaultyMobStoreCompactor(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.regionserver.HStore store) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
performCompaction(org.apache.hadoop.hbase.regionserver.compactions.Compactor.FileDetails fd,
org.apache.hadoop.hbase.regionserver.InternalScanner scanner,
org.apache.hadoop.hbase.regionserver.CellSink writer,
long smallestReadPoint,
boolean cleanSeqId,
org.apache.hadoop.hbase.regionserver.throttle.ThroughputController throughputController,
org.apache.hadoop.hbase.regionserver.compactions.CompactionRequestImpl request,
org.apache.hadoop.hbase.regionserver.compactions.CompactionProgress progress) |
commitWriter, compact, getStoreInfo, performCompaction
abortWriter
private static final org.slf4j.Logger LOG
public static AtomicLong mobCounter
public static AtomicLong totalFailures
public static AtomicLong totalCompactions
public static AtomicLong totalMajorCompactions
static double failureProb
public FaultyMobStoreCompactor(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.regionserver.HStore store)
protected boolean performCompaction(org.apache.hadoop.hbase.regionserver.compactions.Compactor.FileDetails fd, org.apache.hadoop.hbase.regionserver.InternalScanner scanner, org.apache.hadoop.hbase.regionserver.CellSink writer, long smallestReadPoint, boolean cleanSeqId, org.apache.hadoop.hbase.regionserver.throttle.ThroughputController throughputController, org.apache.hadoop.hbase.regionserver.compactions.CompactionRequestImpl request, org.apache.hadoop.hbase.regionserver.compactions.CompactionProgress progress) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.