Class TestLogRollingNoCluster
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.TestLogRollingNoCluster
Test many concurrent appenders to an WAL while rolling the log.
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Appender thread.static class
ProtobufLogWriter that simulates higher latencies in sync() call -
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final int
private static final int
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Spin up a bunch of threads and have them all append to a WAL.
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
EMPTY_1K_ARRAY
-
NUM_THREADS
- See Also:
-
NUM_ENTRIES
- See Also:
-
-
Constructor Details
-
TestLogRollingNoCluster
public TestLogRollingNoCluster()
-
-
Method Details
-
testContendedLogRolling
Spin up a bunch of threads and have them all append to a WAL. Roll the WAL frequently to try and trigger NPE.- Throws:
Exception
-