public static class TestReplicasClient.SlowMeCopro extends Object implements org.apache.hadoop.hbase.coprocessor.RegionCoprocessor, org.apache.hadoop.hbase.coprocessor.RegionObserver
Modifier and Type | Field and Description |
---|---|
(package private) static AtomicInteger |
countOfNext |
private static AtomicReference<CountDownLatch> |
primaryCdl |
(package private) static AtomicInteger |
primaryCountOfScan |
private static AtomicReference<CountDownLatch> |
secondaryCdl |
(package private) static AtomicInteger |
secondaryCountOfScan |
(package private) static AtomicLong |
sleepTime |
(package private) static AtomicBoolean |
slowDownNext |
Constructor and Description |
---|
SlowMeCopro() |
Modifier and Type | Method and Description |
---|---|
static AtomicReference<CountDownLatch> |
getPrimaryCdl() |
Optional<org.apache.hadoop.hbase.coprocessor.RegionObserver> |
getRegionObserver() |
static AtomicReference<CountDownLatch> |
getSecondaryCdl() |
private void |
incrementScanCount(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> e) |
void |
preGetOp(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> e,
org.apache.hadoop.hbase.client.Get get,
List<org.apache.hadoop.hbase.Cell> results) |
boolean |
preScannerNext(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> e,
org.apache.hadoop.hbase.regionserver.InternalScanner s,
List<org.apache.hadoop.hbase.client.Result> results,
int limit,
boolean hasMore) |
void |
preScannerOpen(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> e,
org.apache.hadoop.hbase.client.Scan scan) |
private void |
slowdownCode(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> e) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBulkLoadObserver, getEndpointObserver
postAppend, postAppend, postAppendBeforeWAL, postBatchMutate, postBatchMutateIndispensably, postBulkLoadHFile, postCheckAndDelete, postCheckAndDelete, postCheckAndMutate, postCheckAndPut, postCheckAndPut, postClose, postCloseRegionOperation, postCommitStoreFile, postCompact, postCompactSelection, postDelete, postDelete, postExists, postFlush, postFlush, postGetOp, postIncrement, postIncrement, postIncrementBeforeWAL, postInstantiateDeleteTracker, postMemStoreCompaction, postMutationBeforeWAL, postOpen, postPut, postPut, postReplayWALs, postScannerClose, postScannerFilterRow, postScannerNext, postScannerOpen, postStartRegionOperation, postStoreFileReaderOpen, postWALRestore, preAppend, preAppend, preAppendAfterRowLock, preBatchMutate, preBulkLoadHFile, preCheckAndDelete, preCheckAndDelete, preCheckAndDeleteAfterRowLock, preCheckAndDeleteAfterRowLock, preCheckAndMutate, preCheckAndMutateAfterRowLock, preCheckAndPut, preCheckAndPut, preCheckAndPutAfterRowLock, preCheckAndPutAfterRowLock, preClose, preCommitStoreFile, preCompact, preCompactScannerOpen, preCompactSelection, preDelete, preDelete, preExists, preFlush, preFlush, preFlushScannerOpen, preIncrement, preIncrement, preIncrementAfterRowLock, preMemStoreCompaction, preMemStoreCompactionCompact, preMemStoreCompactionCompactScannerOpen, preOpen, prePrepareTimeStampForDeleteVersion, prePut, prePut, preReplayWALs, preScannerClose, preStoreFileReaderOpen, preStoreScannerOpen, preWALAppend, preWALRestore
static final AtomicInteger primaryCountOfScan
static final AtomicInteger secondaryCountOfScan
static final AtomicLong sleepTime
static final AtomicBoolean slowDownNext
static final AtomicInteger countOfNext
private static final AtomicReference<CountDownLatch> primaryCdl
private static final AtomicReference<CountDownLatch> secondaryCdl
public SlowMeCopro()
public Optional<org.apache.hadoop.hbase.coprocessor.RegionObserver> getRegionObserver()
getRegionObserver
in interface org.apache.hadoop.hbase.coprocessor.RegionCoprocessor
public void preGetOp(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> e, org.apache.hadoop.hbase.client.Get get, List<org.apache.hadoop.hbase.Cell> results) throws IOException
preGetOp
in interface org.apache.hadoop.hbase.coprocessor.RegionObserver
IOException
private void incrementScanCount(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> e)
public void preScannerOpen(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> e, org.apache.hadoop.hbase.client.Scan scan) throws IOException
preScannerOpen
in interface org.apache.hadoop.hbase.coprocessor.RegionObserver
IOException
public boolean preScannerNext(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> e, org.apache.hadoop.hbase.regionserver.InternalScanner s, List<org.apache.hadoop.hbase.client.Result> results, int limit, boolean hasMore) throws IOException
preScannerNext
in interface org.apache.hadoop.hbase.coprocessor.RegionObserver
IOException
private void slowdownCode(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment> e)
public static AtomicReference<CountDownLatch> getPrimaryCdl()
public static AtomicReference<CountDownLatch> getSecondaryCdl()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.