Package org.apache.hadoop.hbase
Class AcidGuaranteesTestTool.AtomicGetReader
java.lang.Object
java.lang.Thread
org.apache.hadoop.hbase.MultithreadedTestUtil.TestThread
org.apache.hadoop.hbase.MultithreadedTestUtil.RepeatingTestThread
org.apache.hadoop.hbase.AcidGuaranteesTestTool.AtomicGetReader
- All Implemented Interfaces:
Runnable
- Enclosing class:
- AcidGuaranteesTestTool
public static class AcidGuaranteesTestTool.AtomicGetReader
extends MultithreadedTestUtil.RepeatingTestThread
Thread that does single-row reads in a table, looking for partially completed rows.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.apache.hadoop.hbase.client.Connection(package private) AtomicLong(package private) int(package private) org.apache.hadoop.hbase.client.Table(package private) byte[][](package private) byte[]Fields inherited from class org.apache.hadoop.hbase.MultithreadedTestUtil.TestThread
ctx, stoppedFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionAtomicGetReader(MultithreadedTestUtil.TestContext ctx, byte[] targetRow, byte[][] targetFamilies, ExecutorService pool) -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidgotFailure(byte[] expected, org.apache.hadoop.hbase.client.Result res) voidworkDone()Methods inherited from class org.apache.hadoop.hbase.MultithreadedTestUtil.RepeatingTestThread
doWorkMethods inherited from class org.apache.hadoop.hbase.MultithreadedTestUtil.TestThread
run, stopTestThreadMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
-
Field Details
-
targetRow
byte[] targetRow -
targetFamilies
byte[][] targetFamilies -
connection
org.apache.hadoop.hbase.client.Connection connection -
table
org.apache.hadoop.hbase.client.Table table -
numVerified
int numVerified -
numRead
-
-
Constructor Details
-
AtomicGetReader
public AtomicGetReader(MultithreadedTestUtil.TestContext ctx, byte[] targetRow, byte[][] targetFamilies, ExecutorService pool) throws IOException - Throws:
IOException
-
-
Method Details
-
doAnAction
- Specified by:
doAnActionin classMultithreadedTestUtil.RepeatingTestThread- Throws:
Exception
-
workDone
- Overrides:
workDonein classMultithreadedTestUtil.RepeatingTestThread- Throws:
IOException
-
gotFailure
-