Closed Bug 1626020 Opened 5 years ago Closed 5 years ago

SchemaNotFoundException: No such docType: default-browser-agent/1

Categories

(Toolkit :: Default Browser Agent, defect, P1)

75 Branch
defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox-esr68 --- unaffected
firefox74 --- unaffected
firefox75 + wontfix
firefox76 + fixed
firefox77 --- fixed

People

(Reporter: ascholtz, Assigned: molly)

References

Details

(Whiteboard: [dataquality])

Attachments

(3 files)

The structured schema errors dashboard show that the default-browser-agent namespace contains pings that are not being ingested since the tables do not exist.

Whiteboard: [data-quality]

I did some investigation:
https://console.cloud.google.com/bigquery?sq=1018637472215:a4722e3dfb3b4be4ab0469fb91b479eb

The pings get sent by pingsender so it seems that a new ping got added but a schema for it doesn't exist yet.

Summary: Make default-browser-agent as `UnwantedDataException` → SchemaNotFoundException: No such docType: default-browser-agent/1
Flags: needinfo?(ascholtz)
Points: --- → 2
Priority: -- → P1

Indeed. The problem here is that submission URIs are incorrect. Currently, their format is /submit/default-browser-agent/1/default-browser/<ID> while the decoder expects /submit/default-browser-agent/default-browser/1/<ID> .

Flags: needinfo?(ascholtz)

In https://searchfox.org/mozilla-central/source/toolkit/mozapps/defaultagent/Telemetry.cpp#33 the line needs to be changed to:

#define TELEMETRY_PING_URL
  TELEMETRY_BASE_URL "/" TELEMETRY_NAMESPACE "/" TELEMETRY_PING_DOCTYPE
                     "/" TELEMETRY_PING_VERSION "/"
Flags: needinfo?(mhowell)

.... oh good grief. I swear I've done this before. Okay. Thank you very much for hunting that down; since it's my fault, I will take it from here.

Assignee: ascholtz → mhowell
Blocks: wdba-phase1
Status: NEW → ASSIGNED
Component: General → Installer
Flags: needinfo?(mhowell)
Product: Data Platform and Tools → Firefox

Bug 1602463 was uplifted to 75, so everything down to that is affected.

Points: 2 → ---
Pushed by mhowell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e911977b9bfc Fix default browser agent telemetry URL. r=bytesized
Pushed by mhowell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9d1cf3c852ae followup - fix a default browser ping field name to match the schema. r=bytesized
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 77
Version: unspecified → 75 Branch

Is this ready for beta uplift?

Flags: needinfo?(mhowell)

It should be, I'll request it now. I was kind of waiting for confirmation that we wanted to do that (normally probably wouldn't but this thing's been such a debacle).

Flags: needinfo?(mhowell)

Comment on attachment 9138561 [details]
Bug 1626020 - Fix default browser agent telemetry URL. r=bytesized

Beta/Release Uplift Approval Request

  • User impact if declined: Default browser agent telemetry appears to send successfully, but then can't be received into the pipeline, so we get no data
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This is a minor change to fix the order of components in the default browser ping submission URL and fix the name of one field in the ping; there are no changes to the data itself, only to how it's submitted.
  • String changes made/needed:
Attachment #9138561 - Flags: approval-mozilla-beta?
Attachment #9138628 - Flags: approval-mozilla-beta?

Comment on attachment 9138561 [details]
Bug 1626020 - Fix default browser agent telemetry URL. r=bytesized

Fixes the default browser agent telemetry pings so they can be properly processed. Approved for 76.0b3.

Attachment #9138561 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9138628 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
See Also: → 1749356

Since this has been fixed for a couple years now, I have switched the exception class to UnwantedDataException. That will prevent these errors from showing up in our monitoring. See: https://github.com/mozilla/gcp-ingestion/pull/1998

Component: Installer → Default Browser Agent
Product: Firefox → Toolkit
Target Milestone: Firefox 77 → ---
Whiteboard: [data-quality] → [dataquality]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: