Package org.apache.hadoop.hbase.ipc
Class TestSimpleRpcScheduler
java.lang.Object
org.apache.hadoop.hbase.ipc.TestSimpleRpcScheduler
@Tag("org.apache.hadoop.hbase.testclassification.RPCTests") @Tag("org.apache.hadoop.hbase.testclassification.MediumTests")
public class TestSimpleRpcScheduler
extends Object
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.apache.hadoop.conf.Configurationprivate final org.apache.hadoop.hbase.ipc.RpcScheduler.Contextprivate static final org.slf4j.Loggerprivate final AtomicIntegerprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate org.apache.hadoop.hbase.ipc.CallRunnercreateMockTask(int priority) private org.apache.hadoop.hbase.ipc.RpcSchedulerdisableHandlers(org.apache.hadoop.hbase.ipc.RpcScheduler scheduler) private voiddoAnswerTaskExecution(org.apache.hadoop.hbase.ipc.CallRunner callTask, ArrayList<Integer> results, int value, int sleepInterval) private org.apache.hadoop.hbase.ipc.CallRunnergetMockedCallRunner(long timestamp, long sleepTime) voidsetUp(org.junit.jupiter.api.TestInfo testInfo) voidvoidvoidTest LIFO switching behavior through actual RPC calls.voidTest that CoDel queue returns to FIFO mode after draining below threshold.voidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidtestRpcScheduler(String queueType) private voidtestRpcScheduler(String queueType, String pluggableQueueClass) voidvoidvoidprivate static voidwaitUntilQueueEmpty(org.apache.hadoop.hbase.ipc.SimpleRpcScheduler scheduler)
-
Field Details
-
LOG
-
CONTEXT
-
conf
-
testMethodName
-
requestProcessed
-
-
Constructor Details
-
TestSimpleRpcScheduler
public TestSimpleRpcScheduler()
-
-
Method Details
-
setUp
-
testBasic
- Throws:
IOExceptionInterruptedException
-
disableHandlers
private org.apache.hadoop.hbase.ipc.RpcScheduler disableHandlers(org.apache.hadoop.hbase.ipc.RpcScheduler scheduler) -
testCallQueueInfo
- Throws:
IOExceptionInterruptedException
-
testHandlerIsolation
- Throws:
IOExceptionInterruptedException
-
createMockTask
-
testRpcScheduler
- Throws:
Exception
-
testPluggableRpcQueue
- Throws:
Exception
-
testPluggableRpcQueueWireUpWithFastPathExecutor
- Throws:
Exception
-
testPluggableRpcQueueWireUpWithoutFastPathExecutor
- Throws:
Exception
-
testPluggableRpcQueueCanListenToConfigurationChanges
- Throws:
Exception
-
testRpcScheduler
- Throws:
Exception
-
testRpcScheduler
- Throws:
Exception
-
testScanQueueWithZeroScanRatio
- Throws:
Exception
-
testScanQueues
- Throws:
Exception
-
doAnswerTaskExecution
private void doAnswerTaskExecution(org.apache.hadoop.hbase.ipc.CallRunner callTask, ArrayList<Integer> results, int value, int sleepInterval) -
waitUntilQueueEmpty
private static void waitUntilQueueEmpty(org.apache.hadoop.hbase.ipc.SimpleRpcScheduler scheduler) throws InterruptedException - Throws:
InterruptedException
-
testSoftAndHardQueueLimits
- Throws:
Exception
-
testCoDelScheduling
- Throws:
Exception
-
testFastPathBalancedQueueRpcExecutorWithQueueLength0
- Throws:
Exception
-
testMetaRWScanQueues
- Throws:
Exception
-
getMockedCallRunner
private org.apache.hadoop.hbase.ipc.CallRunner getMockedCallRunner(long timestamp, long sleepTime) throws IOException - Throws:
IOException
-
testCoDelLifoWithRpcCalls
Test LIFO switching behavior through actual RPC calls. This test verifies that when the queue fills beyond the LIFO threshold, newer calls are processed before older calls (LIFO mode).- Throws:
Exception
-
testCoDelQueueDrainAndFifoReturn
Test that CoDel queue returns to FIFO mode after draining below threshold.- Throws:
Exception
-