Distinguishing bigquery logging failures severities#35373
Distinguishing bigquery logging failures severities#35373shunping merged 5 commits intoapache:masterfrom
Conversation
|
Assigning reviewers: R: @shunping for label python. Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
|
Run Python_ML PreCommit 3.9 |
|
Reminder, please take a look at this pr: @shunping |
|
Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment R: @liferoad for label python. Available commands:
|
|
Reminder, please take a look at this pr: @liferoad |
|
Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment R: @jrmccluskey for label python. Available commands:
|
shunping
left a comment
There was a problem hiding this comment.
The logic here is very confusing and error-prone. Maybe we can simplify it?
|
Let's break down the situation with the help of the following table. The logging level prior to this PR is as follows. In other words, the logging level is set to ERROR only if
The problem pointing out from the issue is that, the user expect that when |
|
However, when looking closely to the comment above the code: It seems there is something we can improve here. I would recommend we do the following changes.
Rationales:
One thing we can argue here is for |
|
WDYT? @claudevdm @TanuSharma2511 |
|
In my opinion, for retry_strategy=RETRY_NEVER, there will be only one condition i.e. @claudevdm can give the final lgtm. |
That makes sense. I think your current implementation mostly agrees with the table at #35373 (comment) (except for the case in #35373 (comment)). If so, why don't we simplify it with the following condition? if (should_retry and self._retry_strategy in
[RetryStrategy.RETRY_ON_TRANSIENT_ERROR, RetryStrategy.RETRY_ALL]):
log_level = logging.WARN
else:
log_level = logging.ERROR |
|
waiting on author |
|
Run Python PreCommit 3.9 |
|
Run Portable_Python PreCommit 3.9 |
shunping
left a comment
There was a problem hiding this comment.
Thanks for looking into this issue. LGTM now.
It resolves #35356
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>instead.CHANGES.mdwith noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.