Deadlock due to race condition in download thread when using Bigquery Storage API #2032
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
policybot
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
There is a race condition in the download thread and the main thread when using Bigquery Storage API to fetch data.
python-bigquery/google/cloud/bigquery/_pandas_helpers.py
Lines 797 to 801 in a76af35
python-bigquery/google/cloud/bigquery/_pandas_helpers.py
Lines 934 to 942 in a76af35
When the download thread is blocked on
worker_queue.put(item)
, if the main thread exit, causing the pool to shut down, the download thread will be stuck. This behavior prevents the program from exiting.The text was updated successfully, but these errors were encountered: