[
https://issues.apache.org/jira/browse/RATIS-2400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze resolved RATIS-2400.
-------------------------------
Fix Version/s: 3.3.0
Resolution: Fixed
The pull request is now merged. Thanks, [~slfan1989]!
> Support timeout and interrupt handling in GrpcClientRpc
> -------------------------------------------------------
>
> Key: RATIS-2400
> URL: https://issues.apache.org/jira/browse/RATIS-2400
> Project: Ratis
> Issue Type: Improvement
> Components: gRPC
> Reporter: Shilun Fan
> Assignee: Shilun Fan
> Priority: Major
> Fix For: 3.3.0
>
> Attachments: 1342_review.patch
>
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> Currently, {{GrpcClientRpc.sendRequest()}} lacks proper timeout handling and
> thread interruption support for synchronous requests:
> 1. The TODO comment at line 125 indicates missing timeout support:
> {code:java}
> // TODO: timeout support {code}
> 2. When a request thread is interrupted, the gRPC stream is not cancelled,
> potentially leaving resources hanging
> 3. No mechanism to enforce configured timeout values(
> {{raft.client.rpc.request.timeout}} and
> {{{}raft.client.rpc.watch.request.timeout{}}})
--
This message was sent by Atlassian Jira
(v8.20.10#820010)