contextual_services.quick_suggest increase in schema errors
Categories
(Data Platform and Tools :: General, task)
Tracking
(Not tracked)
People
(Reporter: ascholtz, Assigned: wstuckey)
References
Details
(Whiteboard: [dataquality])
We've been seeing ~180k of schema errors during the last health check
| Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
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
| Assignee | ||
Updated•3 years ago
|
| Reporter | ||
Updated•3 years ago
|
Comment 2•3 years ago
|
||
We're seeing a sharp increase in contextual_services.quicksuggest_impression_v1 errors for the reporting_url field:
expected type: String, found: Null
Comment 3•3 years ago
|
||
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.
Updated•3 years ago
|
Comment 4•3 years ago
|
||
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.
Comment 5•3 years ago
|
||
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?
Comment 6•3 years ago
|
||
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.
Comment 7•3 years ago
|
||
Fix for Merino: https://github.com/mozilla-services/merino-py/pull/303
Comment 8•3 years ago
|
||
The latest schema error seems to drop significantly after the recent deployment of Merino, it should be fixed now.
Comment 9•3 years ago
|
||
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.
Comment 10•3 years ago
|
||
https://github.com/mozilla-services/mozilla-pipeline-schemas/pull/778
this adds the source field to
contextual_services.quicksuggest_blockcontextual_services.quicksuggest_impressioncontextual_service.quicksuggest_click
Updated•3 years ago
|
Comment 11•3 years ago
|
||
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
| Assignee | ||
Comment 12•3 years ago
|
||
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.
Comment 13•3 years ago
|
||
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.
| Assignee | ||
Comment 14•3 years ago
|
||
I just checked the dashboard and there are no schema or missing column issues for the contextual services ping. Closing this now
Description
•