Skip to content

RATIS-2400. Support timeout and interrupt handling in GrpcClientRpc.#1342

Open
slfan1989 wants to merge 1 commit intoapache:masterfrom
slfan1989:RATIS-2400
Open

RATIS-2400. Support timeout and interrupt handling in GrpcClientRpc.#1342
slfan1989 wants to merge 1 commit intoapache:masterfrom
slfan1989:RATIS-2400

Conversation

@slfan1989
Copy link
Contributor

What changes were proposed in this pull request?

This PR adds timeout and thread interruption handling support for synchronous gRPC client requests in GrpcClientRpc.

What is the link to the Apache JIRA

RATIS-2400. Support timeout and interrupt handling in GrpcClientRpc

How was this patch tested?

  • testGrpcClientRpcSyncTimeout: Verifies that synchronous requests correctly throw TimeoutIOException when the configured timeout is reached. Uses SimpleStateMachine4Testing.blockStartTransaction() to simulate a blocking scenario.

  • testGrpcClientRpcSyncCancelOnInterrupt: Verifies that when a request thread is interrupted, the request is properly cancelled and InterruptedIOException is thrown. Validates that the thread exits promptly after interruption.

@slfan1989
Copy link
Contributor Author

@szetszwo Could you please review this PR? Thank you very much!

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.

1 participant