Skip to content

Conversation

@birschick-bq
Copy link
Contributor

This fix handles the possibility that the parent statement disposes before the created stream.

@github-actions github-actions bot added this to the ADBC Libraries 21 milestone Oct 22, 2025
@birschick-bq
Copy link
Contributor Author

@davidhcoe - Please review if you have a chance.

{
context.Dispose();
}
// Clear the registry and let holder of the contexts dispose themselves
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment seems to describe the reason for this change, but without the context of the previously-checked-in version it doesn't seem helpful for understanding the code moving forward.

What does it mean for the context to dispose itself?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CurtHagenlocher

Modified to implement a more robust dispose on the ContextRegistry. Removed unnecessary comment.

Does this make better sense?

@CurtHagenlocher CurtHagenlocher merged commit 9051acf into apache:main Oct 22, 2025
6 checks passed
@birschick-bq birschick-bq deleted the dev/birschick-bq/fix-bigquery-canceltoken-disposed branch October 22, 2025 21:07
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.

2 participants