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
[BEAM-10880] Log error counts to debug BigQuery streaming insert requ… #12822
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12822 +/- ##
===========================================
+ Coverage 40.38% 82.31% +41.92%
===========================================
Files 451 451
Lines 53721 53849 +128
===========================================
+ Hits 21696 44324 +22628
+ Misses 32025 9525 -22500
Continue to review full report at Codecov.
|
f2d0dbb
to
2bcfa15
Compare
Logging example:
|
…ests for Python SDK
content = json.loads(exn.content) | ||
error_counter.record( | ||
'%s(%s)' % | ||
(content['error']['errors'][0]['reason'], exn.status_code)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please convert this to the human readable format instead of the numeric http code. See the doc I shared with you.
At least before logging
https://cloud.google.com/apis/design/errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It records string error codes and numeric http codes from BigQuery API JSON response https://cloud.google.com/bigquery/docs/error-messages. For example:
{quotaExceeded(403): 461, rateLimitExceeded(403): 2724}
I think string error codes here are human readable and clearly shows the cause of errors. Do you want to append any other string messages to them?
@ajamato PTAL. |
What's the status of this ? |
@chamikaramj Alex and I talked about current implementation and wanted to exploit existing Metric framework as working on #13017. We may close this and #12852 since adding error counts is impossible on the Metric framework (if we don't use the Metric framework it will add much complexity but the benefit is rather small). |
…ests for Python SDK
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username
).[BEAM-XXX] Fixes bug in ApproximateQuantiles
, where you replaceBEAM-XXX
with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.CHANGES.md
with noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
Post-Commit Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.