Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Transform] Latest transforms may disregard some document updates. #90643

Open
przemekwitek opened this issue Oct 4, 2022 · 1 comment
Open
Labels
>bug :ml/Transform Transform Team:ML Meta label for the ML team

Comments

@przemekwitek
Copy link
Contributor

Elasticsearch Version

8.2.3

Installed Plugins

No response

Java Version

bundled

OS Version

n/a

Problem Description

For each order the user wants to see the latest status of this order.
Therefore they use continuous latest transform with:

  • unique_key: orderId
  • sort: updatedAt
  • sync.time.field: event.ingested (they've also tried using @timestamp instead)

Unfortunately sometimes in their dashboard they see the order's old status instead of the order's new status.
The suspicion is that this happens if:
document_v1.updatedAt < document_v2.updatedAt but document_v1.event.ingested > document_v2.event.ingested2

The problem is that the latest transform requires that the sort field values increase monotonically over time, just like the sync.time.field field values.
This GH issue is about relaxing this restriction so that the document ingested later (but with earlier value of the sort field) does not overwrite the document with later value of the sort field.

Steps to Reproduce

Described in the external support issue. Will not copy the steps here for now.

Logs (if relevant)

No response

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Oct 4, 2022
@przemekwitek przemekwitek self-assigned this Oct 4, 2022
@przemekwitek przemekwitek removed their assignment Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :ml/Transform Transform Team:ML Meta label for the ML team
Projects
None yet
Development

No branches or pull requests

2 participants