Package org.apache.hadoop.hbase.wal
Class TestWALSplit.ZombieLastLogWriterRegionServer
java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.wal.TestWALSplit.ZombieLastLogWriterRegionServer
- All Implemented Interfaces:
Runnable
- Enclosing class:
- TestWALSplit
This thread will keep writing to a 'wal' file even after the split process has started. It
simulates a region server that was considered dead but woke up and wrote some more to the last
log entry. Does its writing as an alternate user in another filesystem instance to simulate
better it being a regionserver.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Modifier and TypeFieldDescription(package private) final AtomicLong
(package private) final int
(package private) final String
Region to write edits for.(package private) final AtomicBoolean
(package private) final org.apache.hadoop.hbase.security.User
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionZombieLastLogWriterRegionServer
(AtomicLong counter, AtomicBoolean stop, String region, int writers) -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
editsCount
-
stop
-
numOfWriters
-
region
Region to write edits for. -
user
-
-
Constructor Details
-
ZombieLastLogWriterRegionServer
public ZombieLastLogWriterRegionServer(AtomicLong counter, AtomicBoolean stop, String region, int writers) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
-
Method Details
-
run
-
doWriting
- Throws:
IOException
InterruptedException
-
loop
-