slfan1989 opened a new pull request, #1342: URL: https://github.com/apache/ratis/pull/1342
## 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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
