[
https://issues.apache.org/jira/browse/RATIS-2660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze resolved RATIS-2660.
-------------------------------
Fix Version/s: 3.3.0
Resolution: Fixed
The pull request is now merged. Thanks, [~slfan1989]!
> 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
> Priority: Minor
> Fix For: 3.3.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {{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)