Skip to content
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

Add DNS query Trace of NotStarted before queuing. #38186

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

asedeno
Copy link
Contributor

@asedeno asedeno commented Jan 24, 2025

Before this change, it was possible that the addTrace(NotStarted) occured after the resolver thread picked up the query and started work. This can be seen when running the getaddrinfo tests 1000 times in the form of failure around or just under 1% of the time.

bazel test --config=libc++ --runs_per_test 1000 //test/extensions/network/dns_resolver/getaddrinfo:getaddrinfo_test

Risk Level: low
Testing: CI

Before this change, it was possible that the `addTrace(NotStarted)`
occured after the resolver thread picked up the query and started
work. This can be seen when running the getaddrinfo tests 1000 times
in the form of failure around or just under 1% of the time.

bazel test --config=libc++ --runs_per_test 1000 //test/extensions/network/dns_resolver/getaddrinfo:getaddrinfo_test

Signed-off-by: Alejandro R. Sedeño <[email protected]>
Copy link
Member

@fredyw fredyw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Contributor

@alyssawilk alyssawilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the flake!

@alyssawilk alyssawilk merged commit 6dde528 into envoyproxy:main Jan 27, 2025
24 checks passed
bazmurphy pushed a commit to bazmurphy/envoy that referenced this pull request Jan 29, 2025
Before this change, it was possible that the `addTrace(NotStarted)`
occured after the resolver thread picked up the query and started work.
This can be seen when running the getaddrinfo tests 1000 times in the
form of failure around or just under 1% of the time.

```
bazel test --config=libc++ --runs_per_test 1000 //test/extensions/network/dns_resolver/getaddrinfo:getaddrinfo_test
```

Risk Level: low
Testing: CI

Signed-off-by: Alejandro R. Sedeño <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants