Skip to content

RATIS-2660. Always clear BlockRequestHandlingInjection after load tests - #1554

Merged
szetszwo merged 1 commit into
apache:masterfrom
slfan1989:RATIS-2660
Aug 22, 2026
Merged

RATIS-2660. Always clear BlockRequestHandlingInjection after load tests#1554
szetszwo merged 1 commit into
apache:masterfrom
slfan1989:RATIS-2660

Conversation

@slfan1989

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This pull request ensures that BlockRequestHandlingInjection is always cleared after the gRPC and Netty load tests.

Previously, unblockAll() was called only after super.testWithLoad() completed successfully. If the load test threw an exception or was interrupted by a timeout, the cleanup was skipped, potentially leaving process-wide request-blocking state that could affect subsequent tests.

What is the link to the Apache JIRA

RATIS-2660. Always clear BlockRequestHandlingInjection after load tests.

How was this patch tested?

  • TestRaftWithGrpc.testWithLoad

    • Tests run: 2
    • Failures: 0
    • Errors: 0
  • TestRaftWithNetty.testWithLoad

    • Tests run: 1
    • Failures: 0
    • Errors: 0

@szetszwo szetszwo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 the change looks good.

@szetszwo
szetszwo merged commit 8f1ae8a into apache:master Aug 22, 2026
16 checks passed
@slfan1989

Copy link
Copy Markdown
Contributor Author

+1 the change looks good.

@szetszwo Thanks for the review and for merging the change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants