Closed Bug 1779049 Opened 4 years ago Closed 3 years ago

contextual_services.quick_suggest increase in schema errors

Categories

(Data Platform and Tools :: General, task)

task

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ascholtz, Assigned: wstuckey)

References

Details

(Whiteboard: [dataquality])

We've been seeing ~180k of schema errors during the last health check

Assignee: nobody → wstuckey
Component: Datasets: General → General

Increase of schema errors for the source field as of 1/23/2023

The following fields are causing schema errors:

  • contextual_services.quicksuggest_impression.source
  • contextual_services.quicksuggest_click.source
Summary: contextual_services.quick_suggest #/reporting_url increase in schema errors → contextual_services.quick_suggest increase in schema errors
Whiteboard: [data-quality] → [dataquality]

We're seeing a sharp increase in contextual_services.quicksuggest_impression_v1 errors for the reporting_url field:

expected type: String, found: Null

We're seeing a sharp increase in contextual_services.quicksuggest_impression_v1 errors for the reporting_url field:

Hmm, per schema, reporting_url is an optional field for quicksuggest_impression_v1 since its creation, this error message makes little sense to me.

While investigating https://mozilla-hub.atlassian.net/browse/DSRE-1332 I took a look at some sample data and noticed "reporting_url":null in the relevant errors. This error might be due to the explicit null not matching the json string type, in which case I suppose we could update the schema to allow for oneOf null or string, or otherwise have the client remove the reporting_url key from the json object before sending it so that it is correctly interpreted by the ingestion pipeline.

This error might be due to the explicit null not matching the json string type, in which case I suppose we could update the schema to allow for oneOf null or string, or otherwise have the client remove the reporting_url key from the json object before sending it so that it is correctly interpreted by the ingestion pipeline.

Ah, thanks for noting this! I've double checked in Nightly, it didn't include the "reporting_url": null bit in the impression for Wikipedia suggestions (which don't have reporting_url). Maybe there are some new code paths that i am unaware of are doing that.

Drew, do we send legacy Context Service impressions for the Dynamic Wikipedia suggestions? Or any recent changes we made that could include a null reporting_url in the impression payload?

Flags: needinfo?(adw)

NVM, this was caused by a recent change in Merino, which includes all the optional fields in the API response with "field_name": null (see details here). I think we can fix that in Merino, no need to modify schema nor the client code.

Flags: needinfo?(adw)

The latest schema error seems to drop significantly after the recent deployment of Merino, it should be fixed now.

Hey,

It appears we also see missing column errors for contextual_services.quicksuggest_block.source. This appears similar enough so adding this as a note in this bug. At the moment, this appears to no be a high count, only around 1.3k errors and increased by 12 % in comparison to 2 weeks ago (~1.2k). This is why I thought a note here might be sufficient.

:wstuckey please let me know if this is okay or if you'd prefer me to open a new bug for this.

Flags: needinfo?(wstuckey)

https://github.com/mozilla-services/mozilla-pipeline-schemas/pull/778
this adds the source field to

  • contextual_services.quicksuggest_block
  • contextual_services.quicksuggest_impression
  • contextual_service.quicksuggest_click
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

sorry closed prematurely .. this bug seem to also include schema errors for contextual_services.quicksuggest we only fixed the missing column error where this bug was linked to

Status: RESOLVED → REOPENED
Resolution: FIXED → ---

If we have fixed the source schema errors, then I think we should close this. Any future issues with the contextual services ping should probably go into their own bug.

Flags: needinfo?(wstuckey)

Did we fix the schema error? I did not. I only fixed the missing column error by adding source to the schema and closed this bug because it was also linked to the missing column error in the health dashboard.

I just checked the dashboard and there are no schema or missing column issues for the contextual services ping. Closing this now

Status: REOPENED → RESOLVED
Closed: 3 years ago → 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.