Skip to content

Conversation

@danilonajkov-db
Copy link
Contributor

@danilonajkov-db danilonajkov-db commented Nov 3, 2025

What changes are proposed in this pull request?

We noticed an issue where the underlying stream was not properly closed with the .close() method of the sdk. This caused streams to remain active and even recovery to kick in after some time when stream was supposed to be closed.

This PR addreses this by explicitly calling .cancel on the stream in case of a stream close.

How is this tested?

Added a unit test to ensure cancel is called with a spy on the grpc stream

Signed-off-by: Danilo Najkov <danilo.najkov@databricks.com>
@danilonajkov-db danilonajkov-db force-pushed the bug/close-underlying-stream-on-sdk-close branch from e14bb47 to e2f4275 Compare November 7, 2025 11:31
@danilonajkov-db danilonajkov-db added this pull request to the merge queue Nov 7, 2025
Merged via the queue into main with commit 81a7a50 Nov 7, 2025
7 checks passed
@danilonajkov-db danilonajkov-db deleted the bug/close-underlying-stream-on-sdk-close branch November 7, 2025 11:42
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.

3 participants