GeezerVison is showing github.com — BigQuery insertAll always retries operation · Issue #3321 · googleapis/google-cloud-java
BigQuery insertAll always retries operation #3321
Labels
🚨 criticalP0 critical issue. Requires immediate fixapi: bigqueryIssues related to the BigQuery API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. Description
Hi. First time reporter here.
I wanted to report a small but perhaps inconvenient bug in BigQuery, specifically regarding streaming inserts using an InsertAllRequest. It seems for some reason unknown to me that inserts are retried using the client's RetrySettings whenever row ids are supplied for deduplication.
When the current implementation always attempts a retry (which I discovered during these odd retry errors) due to the fact that Lists.transform() is strictly lazy.
Anyhow the fix is minor and I corrected it on my branch but I'm unsure how to write the necessary tests in order to validate my claim. My commit is here: neuromantik33@984b5bb, and after proper review I can submit a pull request.
Thanks in advance for any feedback.
Activity
andreamlin commented on Jun 4, 2018
Hi @neuromantik33,
Thanks for catching this issue! Would you mind turning your commit into a pull request? For testing, one option could be to add a unit test to BigQueryImplTest.java, set a spy on the BigQueryOptions options (see line 274), and assert that getRetrySettings() is called on that spy object when BigQueryImpl.insertAll is run or not run.
added a commit that references this issue
on Dec 3, 2018This issue will close once commit 79705d7 is merged into the 'master' branch.79705d7 added
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2Moderately-important priority. Fix may not be included in next release. and removed
on Dec 4, 2018added a commit that references this issue
on Dec 4, 2018This issue will close once commit 174e62d is merged into the 'main' branch.174e62d added a commit that references this issue
on Feb 3, 2019This issue will close once commit 47c840e is merged into the 'main' branch.47c840e
Metadata
Metadata
🚨 criticalP0 critical issue. Requires immediate fixapi: bigqueryIssues related to the BigQuery API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. Development
No branches or pull requestsIssue actions