-
Notifications
You must be signed in to change notification settings - Fork 340
Reduce noisy "object has been modified" logs/events #3289
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
Reduce noisy "object has been modified" logs/events #3289
Conversation
|
/remove-approve |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3289 +/- ##
==========================================
+ Coverage 74.60% 74.63% +0.02%
==========================================
Files 188 188
Lines 8184 8188 +4
==========================================
+ Hits 6106 6111 +5
Misses 1839 1839
+ Partials 239 238 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Failed CI should be resolved as soon as knative/client#2101 is merged and propagated to the |
| // Conflict errors are expected, requeue to retry | ||
| if apierrors.IsConflict(err) { | ||
| logger.Debugw("Reconcile conflict", zap.Duration("duration", time.Since(startTime))) | ||
| c.workQueue.AddRateLimited(key) |
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.
Do we want to guard !c.workQueue.ShuttingDown() ? here
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.
Thanks that makes sense. I moved the shutdown check to the top, it shouldn't really affect the logic as the AddRateLimited functions (which call AddAfter) effectively also check that again, so it's more about avoiding useless error logs during shutdown.
pkg/vendor/k8s.io/client-go/util/workqueue/delaying_queue.go
Lines 249 to 253 in 7459906
| func (q *delayingType[T]) AddAfter(item T, duration time.Duration) { | |
| // don't add if we're already shutting down | |
| if q.ShuttingDown() { | |
| return | |
| } |
f88917d to
de644a7
Compare
de644a7 to
a8b9e0a
Compare
a8b9e0a to
885de40
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dprotaso The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
See knative/serving#15746
Changes
/kind enhancement
Release Note