Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: reconnect write stream if disconnected by server #868

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Linchin
Copy link
Contributor

@Linchin Linchin commented Jan 17, 2025

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquerystorage Issues related to the googleapis/python-bigquery-storage API. labels Jan 17, 2025
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Jan 17, 2025
# non-empty, or when the customer sends another request.
self._hibernating = False

# Only one call to `send()` should attempt to open the RPC. Use
Copy link
Contributor Author

@Linchin Linchin Jan 17, 2025

Choose a reason for hiding this comment

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

TODO: using reentrant lock may be against the original purpose that "Only one call to send() should attempt to open the RPC". Need to check:

  1. Do we really need thread lock in _retry()? (I think so)
  2. If yes, we may need another send func without using any thread lock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquerystorage Issues related to the googleapis/python-bigquery-storage API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants