private static class TestScannerHeartbeatMessages.HeartbeatHRegion extends org.apache.hadoop.hbase.regionserver.HRegion
RegionScanner
s with configurable sleep times
between fetches of row Results and/or column family cells. Useful for emulating an instance
where the server is taking a long time to process a client's scan requestorg.apache.hadoop.hbase.regionserver.HRegion.BulkLoadListener, org.apache.hadoop.hbase.regionserver.HRegion.FlushResult, org.apache.hadoop.hbase.regionserver.HRegion.FlushResultImpl, org.apache.hadoop.hbase.regionserver.HRegion.MutationBatchOperation, org.apache.hadoop.hbase.regionserver.HRegion.ObservedExceptionsInBatch, org.apache.hadoop.hbase.regionserver.HRegion.PrepareFlushResult, org.apache.hadoop.hbase.regionserver.HRegion.RegionScannerImpl, org.apache.hadoop.hbase.regionserver.HRegion.ReplayBatchOperation, org.apache.hadoop.hbase.regionserver.HRegion.RowLockContext, org.apache.hadoop.hbase.regionserver.HRegion.RowLockImpl, org.apache.hadoop.hbase.regionserver.HRegion.WriteState
Modifier and Type | Field and Description |
---|---|
private static int |
columnFamilySleepTime |
private static int |
rowSleepTime |
private static boolean |
sleepBeforeColumnFamily |
private static boolean |
sleepBetweenColumnFamilies |
private static boolean |
sleepBetweenRows |
busyWaitDuration, checkAndMutateChecksFailed, checkAndMutateChecksPassed, closed, closing, compactionNumBytesCompacted, compactionNumFilesCompacted, compactionsFailed, compactionsFinished, compactionsQueued, conf, dataInMemoryWithoutWAL, DEEP_OVERHEAD, DEFAULT_BUSY_WAIT_DURATION, DEFAULT_CACHE_FLUSH_INTERVAL, DEFAULT_FLUSH_PER_CHANGES, DEFAULT_HBASE_REGIONSERVER_MINIBATCH_SIZE, DEFAULT_MAX_CELL_SIZE, DEFAULT_ROW_PROCESSOR_TIMEOUT, DEFAULT_ROWLOCK_WAIT_DURATION, filteredReadRequestsCount, FIXED_OVERHEAD, flushesQueued, HBASE_MAX_CELL_SIZE_KEY, HBASE_REGIONSERVER_MINIBATCH_SIZE, lastReplayedCompactionSeqId, lastReplayedOpenRegionSeqId, LOAD_CFS_ON_DEMAND_CONFIG_KEY, lock, MAX_FLUSH_PER_CHANGES, maxBusyWaitDuration, maxBusyWaitMultiplier, maxCellSize, maxSeqIdInStores, MEMSTORE_FLUSH_PER_CHANGES, MEMSTORE_PERIODIC_FLUSH_INTERVAL, memstoreFlushSize, numMutationsWithoutWAL, readRequestsCount, regionServicesForStores, rowProcessorExecutor, rowProcessorTimeout, rsServices, stores, SYSTEM_CACHE_FLUSH_INTERVAL, timestampSlop, writeRequestsCount, writestate
Constructor and Description |
---|
HeartbeatHRegion(org.apache.hadoop.hbase.regionserver.HRegionFileSystem fs,
org.apache.hadoop.hbase.wal.WAL wal,
org.apache.hadoop.conf.Configuration confParam,
org.apache.hadoop.hbase.client.TableDescriptor htd,
org.apache.hadoop.hbase.regionserver.RegionServerServices rsServices) |
HeartbeatHRegion(org.apache.hadoop.fs.Path tableDir,
org.apache.hadoop.hbase.wal.WAL wal,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration confParam,
org.apache.hadoop.hbase.client.RegionInfo regionInfo,
org.apache.hadoop.hbase.client.TableDescriptor htd,
org.apache.hadoop.hbase.regionserver.RegionServerServices rsServices) |
Modifier and Type | Method and Description |
---|---|
private static void |
columnFamilySleep() |
protected org.apache.hadoop.hbase.regionserver.HRegion.RegionScannerImpl |
instantiateRegionScanner(org.apache.hadoop.hbase.client.Scan scan,
List<org.apache.hadoop.hbase.regionserver.KeyValueScanner> additionalScanners,
long nonceGroup,
long nonce) |
private static void |
rowSleep() |
addRegionToSnapshot, append, append, areWritesEnabled, batchMutate, batchMutate, batchMutate, batchMutate, batchReplay, blockUpdates, bulkLoadHFiles, bulkLoadHFiles, checkAndMutate, checkAndRowMutate, checkFamilies, checkFamily, checkReadOnly, checkReadsEnabled, checkResources, checkRow, checkSplit, checkTimestamps, clearSplit, close, close, closeRegionOperation, closeRegionOperation, compact, compact, compact, compactStore, compactStores, computeHDFSBlocksDistribution, computeHDFSBlocksDistribution, createHRegion, createHRegion, createRegionDir, decorateRegionConfiguration, decrementCompactionsQueuedCount, decrMemStoreSize, decrMemStoreSize, delete, delete, deregisterChildren, doRegionCompactionPrep, dropMemStoreContents, equals, execService, flush, flushcache, forceSplit, get, get, get, getBaseConf, getBlockedRequestsCount, getCellComparator, getCheckAndMutateChecksFailed, getCheckAndMutateChecksPassed, getCompactionState, getCompactPriority, getCoprocessorHost, getDataInMemoryWithoutWAL, getEarliestFlushTimeForAllStores, getEffectiveDurability, getExplicitSplitPoint, getFilesystem, getFilteredReadRequestsCount, getHDFSBlocksDistribution, getLoadStatistics, getLockedRows, getMaxFlushedSeqId, getMaxStoreSeqId, getMemStoreDataSize, getMemStoreFlushSize, getMemStoreHeapSize, getMemStoreOffHeapSize, getMetrics, getMVCC, getNextSequenceId, getNumMutationsWithoutWAL, getOldestHfileTs, getOldestSeqIdOfStore, getOpenAndCloseThreadPool, getOpenSeqNum, getPrepareFlushResult, getReadLockCount, getReadPoint, getReadPoint, getReadRequestsCount, getRegionDir, getRegionFileSystem, getRegionInfo, getRegionServerServices, getRegionServicesForStores, getRegionWALFileSystem, getReplicationScope, getRowLock, getRowLock, getRowLockInternal, getScanner, getScanner, getSmallestReadPoint, getSplitPolicy, getStore, getStoreFileList, getStoreFileOpenAndCloseThreadPool, getStoreOpenAndCloseThreadPool, getStores, getTableDescriptor, getWAL, getWalFileSystem, getWALRegionDir, getWriteRequestsCount, hashCode, hasReferences, heapSize, incMemStoreSize, incMemStoreSize, increment, increment, incrementCompactionsQueuedCount, incrementFlushesQueuedCount, initialize, initialize, instantiateHStore, instantiateRegionScanner, internalFlushcache, internalFlushCacheAndCommit, internalPrepareFlushCache, isAvailable, isClosed, isClosing, isLoadingCfsOnDemandDefault, isMergeable, isReadOnly, isSplittable, metricsUpdateForGet, mutateRow, mutateRowsWithLocks, newHRegion, onConfigurationChange, openHRegion, openHRegion, openHRegion, openHRegion, openHRegion, openHRegion, openHRegion, openHRegion, openHRegion, openHRegion, openReadOnlyFileSystemHRegion, prepareDelete, prepareDeleteTimestamps, prepareGet, processRowsWithLocks, processRowsWithLocks, processRowsWithLocks, put, put, refreshStoreFiles, refreshStoreFiles, registerChildren, registerService, replayRecoveredEditsIfAny, replayWALBulkLoadEventMarker, replayWALCompactionMarker, replayWALFlushCommitMarker, replayWALFlushMarker, replayWALFlushStartMarker, replayWALRegionEventMarker, reportCompactionRequestEnd, reportCompactionRequestFailure, reportCompactionRequestStart, requestCompaction, requestCompaction, requestFlush, restoreEdit, rewriteCellTags, rowIsInRange, rowIsInRange, setClosing, setCompleteSequenceId, setCoprocessorHost, setHTableSpecificConf, setReadsEnabled, setTableDescriptor, setTimeoutForWriteLock, shouldFlush, shouldFlushStore, shouldForceSplit, startRegionOperation, startRegionOperation, throwException, toString, unblockUpdates, updateDeleteLatestVersionTimestamp, waitForFlushes, waitForFlushes, waitForFlushesAndCompactions, warmupHRegion
private static volatile int rowSleepTime
private static volatile boolean sleepBetweenRows
private static volatile boolean sleepBeforeColumnFamily
private static volatile int columnFamilySleepTime
private static volatile boolean sleepBetweenColumnFamilies
public HeartbeatHRegion(org.apache.hadoop.fs.Path tableDir, org.apache.hadoop.hbase.wal.WAL wal, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration confParam, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.regionserver.RegionServerServices rsServices)
public HeartbeatHRegion(org.apache.hadoop.hbase.regionserver.HRegionFileSystem fs, org.apache.hadoop.hbase.wal.WAL wal, org.apache.hadoop.conf.Configuration confParam, org.apache.hadoop.hbase.client.TableDescriptor htd, org.apache.hadoop.hbase.regionserver.RegionServerServices rsServices)
private static void columnFamilySleep()
private static void rowSleep()
protected org.apache.hadoop.hbase.regionserver.HRegion.RegionScannerImpl instantiateRegionScanner(org.apache.hadoop.hbase.client.Scan scan, List<org.apache.hadoop.hbase.regionserver.KeyValueScanner> additionalScanners, long nonceGroup, long nonce) throws IOException
instantiateRegionScanner
in class org.apache.hadoop.hbase.regionserver.HRegion
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.