Closed
Bug 2072119
Opened 2 days ago
Closed 16 hours ago
Improve DNS negative caching: make the lifetime a pref and add cache-miss telemetry
Categories
(Core :: Networking: DNS, task, P2)
Core
Networking: DNS
Tracking
()
RESOLVED
FIXED
158 Branch
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: kershaw, Assigned: kershaw)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(2 files)
HE resolves A and AAAA as separate per-family lookups, so an empty/NODATA AAAA answer is cached as a negative record.
Once that negative AAAA entry is gone, HE must do a fresh blocking AAAA lookup while the A record is still a warm hit, and wait_for_preferred_address holds the connection for up to network.http.happy_eyeballs_resolution_delay. The legacy AF_UNSPEC path does not split families and caches the (positive) result for the full TTL, so it is unaffected.
Two problems, addressed together here:
- We can't tell why the
AAAAentry was gone because the telemetry doesn't distinguishexpiredorevicted, nor negative records, nor address family. - The negative-cache lifetime is a hardcoded 60s constant.
| Assignee | ||
Comment 1•2 days ago
|
||
| Assignee | ||
Comment 2•2 days ago
|
||
Depends on D326128
Pushed by kjang@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/ee62863169fc
https://hg.mozilla.org/integration/autoland/rev/b5fdb1a9b960
Add telemetry for why DNS lookups miss the cache r=necko-reviewers,valentin,mxinden
https://github.com/mozilla-firefox/firefox/commit/f87b4b438bf0
https://hg.mozilla.org/integration/autoland/rev/b70b40bdf2a2
Make the DNS negative-cache lifetime a pref and raise the default r=necko-reviewers,valentin
Pushed by nfay@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/04e912057237
https://hg.mozilla.org/integration/autoland/rev/101ff7b48bf5
Revert "Bug 2072119 - Make the DNS negative-cache lifetime a pref and raise the default r=necko-reviewers,valentin" for causing multiple Gtest failures
| Assignee | ||
Updated•1 day ago
|
Flags: needinfo?(kershaw)
Pushed by kjang@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/ae56f81180d4
https://hg.mozilla.org/integration/autoland/rev/e6475f35919b
Add telemetry for why DNS lookups miss the cache r=necko-reviewers,valentin,mxinden
https://github.com/mozilla-firefox/firefox/commit/981ed2cf4644
https://hg.mozilla.org/integration/autoland/rev/4503365575e7
Make the DNS negative-cache lifetime a pref and raise the default r=necko-reviewers,valentin
https://github.com/mozilla-firefox/firefox/commit/641d6a24313d
https://hg.mozilla.org/integration/autoland/rev/a5178f24fb6a
apply code formatting via Lando
Comment 7•16 hours ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e6475f35919b
https://hg.mozilla.org/mozilla-central/rev/4503365575e7
https://hg.mozilla.org/mozilla-central/rev/a5178f24fb6a
Status: NEW → RESOLVED
Closed: 16 hours ago
status-firefox158:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•