Skip to content

Conversation

christarazi
Copy link
Member

Backport of #19702

$ for pr in 19702; do contrib/backporting/set-labels.py $pr done 1.9; done

[ upstream commit 6b57b52 ]

This commit fixes the error wrapping inside the dnsproxy package.

When a DNS response is being processed by the DNS proxy inside
NotifyOnDNSMsg(), we check ProxyRequestContext. If the request response
timed out, we annotate the metrics specifically to indicate that it
timed out. This relies on the errors being properly wrapped.

In order to do this, errors.As() is used and all errors are properly
wrapped with '%w'.

Signed-off-by: Chris Tarazi <chris@isovalent.com>
@christarazi christarazi requested a review from a team as a code owner May 10, 2022 23:02
@christarazi christarazi added kind/backports This PR provides functionality previously merged into master. backport/1.9 labels May 10, 2022
@christarazi
Copy link
Member Author

/test-backport-1.9

@christarazi christarazi requested a review from nebril May 28, 2022 00:00
@christarazi christarazi added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 30, 2022
@jibi jibi merged commit af6ed1e into cilium:v1.9 May 31, 2022
@christarazi christarazi deleted the pr/christarazi/v1.9-backport-19702 branch May 31, 2022 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/backports This PR provides functionality previously merged into master. ready-to-merge This PR has passed all tests and received consensus from code owners to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants