Client.query()
sometimes raises 404, despite the query job being successfully started
#2134
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
python --version
3.11pip --version
N/Agoogle-cloud-bigquery
version:pip show google-cloud-bigquery
3.25.0Steps to reproduce
It's a bit difficult to reproduce, but it seems to happen most often with creating a vector index via CREATE VECTOR INDEX DDL as generated by bigframes.bigquery.create_vector_index.
Code example
Long Python sample, sorry
Unfortunately, even this is not a guarantee, but it does seem pretty reproducible on one of the projects my colleague is using.
Stack trace
Note that it is getting a 404 here:
python-bigquery/google/cloud/bigquery/_job_helpers.py
Line 145 in b03a2af
This is after a Conflict exception, meaning the job was created successfully, the retry failed because it already exists, but then getting that already existing job failed with 404. Something funky is going on with the networking I think for this case to happen, but it should be possible to simulate in unit tests, at least.
The text was updated successfully, but these errors were encountered: