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)

task

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:

  1. We can't tell why the AAAA entry was gone because the telemetry doesn't distinguish expired or evicted, nor negative records, nor address family.
  2. The negative-cache lifetime is a hardcoded 60s constant.
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

Backed out for causing multiple Gtest failures

Backout link

Push with failures

Failure log
Failure log 2

Flags: needinfo?(kershaw)
Flags: needinfo?(kershaw)
Status: NEW → RESOLVED
Closed: 16 hours ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: