Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Avoid (potential) infinite reconnect loops in reader module #219

Closed
@tswast

Description

@tswast

Currently we always reconnect on "RST_STREAM" errors:

except _STREAM_RESUMPTION_EXCEPTIONS:
# Transient error, so reconnect to the stream.
pass
self._reconnect()

This may cause some infinite loops, especially if we add other errors such as UNAUTHENTICATED to the stream resumption logic to support customer issue 191460918. Pub/Sub and Firestore have already solved this with the shared BiDi (bi-directional) classes.

Resources:

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigquerystorageIssues related to the googleapis/python-bigquery-storage API.status: will not fixInvalid (untrue/unsound/erroneous), inconsistent with product, not on roadmap.type: processA process-related concern. May include testing, release, or the like.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions