Shilun Fan created RATIS-2660:
---------------------------------
Summary: Always clear BlockRequestHandlingInjection after load
tests
Key: RATIS-2660
URL: https://issues.apache.org/jira/browse/RATIS-2660
Project: Ratis
Issue Type: Bug
Components: test
Reporter: Shilun Fan
Assignee: Shilun Fan
{{TestRaftWithGrpc.testWithLoad(boolean) and
TestRaftWithNetty.testWithLoad() clear BlockRequestHandlingInjection
only after RaftBasicTests.testWithLoad() returns successfully.}}
{code:java}
super.testWithLoad();
BlockRequestHandlingInjection.getInstance().unblockAll(); {code}
{{If the load test throws an exception or is interrupted by a timeout,
unblockAll() is skipped.}}
{{BlockRequestHandlingInjection is a process-wide singleton and stores
blocked requestors and repliers. Any remaining state may affect later
tests running in the same JVM and cause misleading cascading failures.}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)