-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
'table.insert_data()' frequently fails in the Python BiqQuery client with error: [Errno 32] Broken pipe #2491
Comments
Thanks for reporting! Do you happen to know roughly how long it takes this operation takes on average? |
Happy to report! It takes less than a one or two seconds. |
I'm not entirely sure of the scenario but if you're streaming the data across locations then you might see this more often. I don't see that there has been any recent issues on https://status.cloud.google.com. I would suggest writing logic to retry on a failure like this, if I understand correctly though, it looks like this is a non-transactional so there could be duplication(although they could be removed). |
Thanks for the update. I am indeed streaming the data across locations (Asia to North America). I am currently using the following logic, which ensures that the rows are virtually all of the time, but would be nice to have ways to make this more robust :)
|
@rishsriv It might be "safer" to pass |
We should probably also look at promoting our "retry handlers" from being "private" to our |
@tseaver, could the GAPIC LRO's help here if it was implemented with GAPIC? |
@daspecster nope, for two reasons:
|
@tseaver We get retries for free with |
Closing this issue as we are tracking internally as a GA requirement. |
Streaming inserts to a BigQuery table frequently fail with
error: [Errno 32] Broken pipe
on Debian 7.11 with Python 2.7.3 and google-cloud-python 0.20. The error occurs around 30% of the time.This happens with a small number of rows (<2000), where each row is less than 2kb. Hence, it is unlikely to be a quota problem.
The code is executed on a Google Cloud Compute VM every 30 minutes. It has failed in 6 out of the last 26 runs.
Here is the code that I am using:
Here is the full error traceback:
The text was updated successfully, but these errors were encountered: