Janus Chow created RATIS-2421:
---------------------------------

             Summary: Gracefully cancel stream after complete in GrcLogAppender
                 Key: RATIS-2421
                 URL: https://issues.apache.org/jira/browse/RATIS-2421
             Project: Ratis
          Issue Type: Improvement
            Reporter: Janus Chow
            Assignee: Janus Chow


When onCompleted() is called, the client waits for the server response to 
finish the RPC and release the underlying resources.

However, in some cases the server response may never arrive, which leaves the 
RPC stream open and prevents resources from being released.

This ticket introduces a client-side cancel() after a short grace period 
following onCompleted(), to ensure the RPC stream is forcefully closed and 
resources are cleaned up.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to