-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
nat: Do not increment delete error metric on nat entry GC #15587
nat: Do not increment delete error metric on nat entry GC #15587
Conversation
This comment has been minimized.
This comment has been minimized.
65fef90
to
d347507
Compare
Please review that only the relevant call sites to |
d347507
to
1860ab2
Compare
This comment has been minimized.
This comment has been minimized.
99fbbdb
to
e903e2a
Compare
Tested this locally and with e903e2a the increments of failed |
cff0584
to
2516d94
Compare
2516d94
to
19b479a
Compare
test-me-please |
19b479a
to
88c93db
Compare
88c93db
to
767f9e8
Compare
This fixes the spurious increments of the snat_v[46]_external delete fail metric by extending bpf.Map with SilentDelete() which allows deleting map entries that may not exist without error counter increments or deferred repeated delete via resolveErrors(). Fixes: cilium#11485 Signed-off-by: Jussi Maki <jussi@isovalent.com>
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.
LGTM, thanks 🚀
There seems to be a legit Go linter issue: https://github.com/cilium/cilium/pull/15587/checks?check_run_id=2321807972 |
Finally set up my editor to |
767f9e8
to
cb2f4f4
Compare
test-me-please |
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.
Looks good, thank you!
This fixes the spurious increments of the snat_v[46]_external delete
fail metric by extending bpf.Map with SilentDelete() which allows
deleting map entries that may not exist without error counter increments
or deferred repeated delete via resolveErrors().
Fixes: #11485