Shilun Fan created RATIS-2400:
---------------------------------

             Summary: Support timeout and interrupt handling in GrpcClientRpc
                 Key: RATIS-2400
                 URL: https://issues.apache.org/jira/browse/RATIS-2400
             Project: Ratis
          Issue Type: Improvement
            Reporter: Shilun Fan
            Assignee: Shilun Fan


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)

Reply via email to