Package org.apache.hadoop.hbase
Class TestChoreService
java.lang.Object
org.apache.hadoop.hbase.TestChoreService
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static class
Lightweight ScheduledChore used primarily to fill the scheduling queue in testsstatic class
A Chore that will try to execute the initial chore a few times before succeeding.private static class
Straight forward stopper implementation that is used by default when one is not providedprivate static class
private static class
Sleeps for longer than the scheduled period. -
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final org.apache.hadoop.conf.Configuration
private int
private static final org.slf4j.Logger
org.junit.rules.TestName
private org.apache.hadoop.hbase.ChoreService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setUp()
void
shutdownService
(org.apache.hadoop.hbase.ChoreService service) void
tearDown()
void
void
void
void
void
void
void
void
void
void
void
for HBASE-25014void
ChoreServices should never have a core pool size that exceeds the number of chores that have been scheduled with the service.void
void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
LOG
-
CONF
-
name
-
initialCorePoolSize
-
service
-
-
Constructor Details
-
TestChoreService
public TestChoreService()
-
-
Method Details
-
setUp
-
tearDown
-
testInitialChorePrecedence
- Throws:
InterruptedException
-
testCancelChore
- Throws:
InterruptedException
-
testScheduledChoreConstruction
-
testChoreServiceConstruction
- Throws:
InterruptedException
-
testFrequencyOfChores
- Throws:
InterruptedException
-
shutdownService
-
testForceTrigger
- Throws:
InterruptedException
-
testCorePoolIncrease
- Throws:
InterruptedException
-
testCorePoolDecrease
- Throws:
InterruptedException
-
testNumberOfRunningChores
- Throws:
InterruptedException
-
testNumberOfChoresMissingStartTime
- Throws:
InterruptedException
-
testMaximumChoreServiceThreads
ChoreServices should never have a core pool size that exceeds the number of chores that have been scheduled with the service. For example, if 4 ScheduledChores are scheduled with a ChoreService, the number of threads in the ChoreService's core pool should never exceed 4- Throws:
InterruptedException
-
testChangingChoreServices
- Throws:
InterruptedException
-
testStopperForScheduledChores
- Throws:
InterruptedException
-
testShutdownCancelsScheduledChores
- Throws:
InterruptedException
-
testShutdownWorksWhileChoresAreExecuting
- Throws:
InterruptedException
-
testShutdownRejectsNewSchedules
- Throws:
InterruptedException
-
testInitialDelay
for HBASE-25014 -
testCleanupWithStopper
-
testCleanupWithShutdown
-