[
https://issues.apache.org/jira/browse/RATIS-2400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze updated RATIS-2400:
------------------------------
Component/s: gRPC
> 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
> Time Spent: 20m
> 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)