Skip to content

RATIS-2421. Gracefully cancel stream after complete in GrpcLogAppender#1363

Open
symious wants to merge 4 commits intoapache:masterfrom
symious:RATIS-2421
Open

RATIS-2421. Gracefully cancel stream after complete in GrpcLogAppender#1363
symious wants to merge 4 commits intoapache:masterfrom
symious:RATIS-2421

Conversation

@symious
Copy link
Contributor

@symious symious commented Mar 6, 2026

What changes were proposed in this pull request?

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.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/RATIS-2421

How was this patch tested?

Test locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant