FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: fix BackgroundConsumer error log by daniel-sanche · Pull Request #814 · googleapis/python-api-core · GitHub

This repository was archived by the owner on Feb 23, 2026. It is now read-only.
/ python-api-core Public archive

test: fix BackgroundConsumer error log - #814

Merged
daniel-sanche merged 6 commits into
mainfrom
b_788
Apr 10, 2025
Merged

test: fix BackgroundConsumer error log#814
daniel-sanche merged 6 commits into
mainfrom
b_788

Conversation

Copy link
Copy Markdown
Contributor

We #770 that clears some variables that were causing a memory leak in the bidirectional streaming classes. This change lead to a potential null pointer exception during the shut-down process when the BackgroundConsumer tries to access the removed callback.

The issue would only come up when the background thread failed to finalize within 1 second, and the error would be swallowed internally. But it would result in an error log that should be avoided

This PR does a None check to avoid emitting the error log

Fixes #788

daniel-sanche requested review from a team April 4, 2025 22:20
product-auto-label Bot added the size: s Pull request size is small. label Apr 4, 2025
product-auto-label Bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Apr 4, 2025
product-auto-label Bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Apr 5, 2025
product-auto-label Bot added size: s Pull request size is small. and removed size: l Pull request size is large. labels Apr 5, 2025
daniel-sanche merged commit 66d84a3 into main Apr 10, 2025
daniel-sanche deleted the b_788 branch April 10, 2025 23:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BackgroundConsumer destruction issues

2 participants


Back | FazBrowse Home | New Git URL