Page MenuHomePhabricator

CX events EventGate validation errors: cx session position should be int
Closed, ResolvedPublicBUG REPORT

Description

Issue (include links if applicable):

Logstash dashboard shows EventGate validation errors for CX events: https://logstash.wikimedia.org/goto/8cb3534121d93b508625aa325eda7f29

The error is '.content_translation_session_position' should be integer

~550 events were affected by this error during the last 90 days.

What should have happened instead?:

There can be two scenarios why this might be happening (both should be checked for)

  • Events for which these events are not relevant, for example, tab selection, and explicitly being set to null. For events which fields which are not relevant, they should not be set to null. Missing fields will be set to null during ingestion. Please see: Event_Platform/Schemas/Guidelines#Optional_/_Missing_fields
  • Events for which these fields are applicable, but are null for some reason. Ideally session position should be there for all events.

These errors seem to be happening in batches, almost 50% of the errors happened on three days (21 & 26 April, 1 May)

Event Timeline

Change #1152309 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] Fix getTranslationSessionPosition to always return a number

https://gerrit.wikimedia.org/r/1152309

I couldn't find the conditions that caused content_translation_session_position to be null but the patch above will guard against corrupted data where the session position is stored between events.

Change #1152309 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Fix and refactor Session Position handling

https://gerrit.wikimedia.org/r/1152309

Change #1152798 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20250602

https://gerrit.wikimedia.org/r/1152798

Change #1152798 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20250602

https://gerrit.wikimedia.org/r/1152798

QA -- No events failed validation during since June 6 due to this error: https://logstash.wikimedia.org/goto/0524e182818585ea49052857bbc569d7

Good to be resolved.