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] Create system index on first put #118003

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

prwhelan
Copy link
Member

@prwhelan prwhelan commented Dec 4, 2024

Putting a new Transform should create the latest system index if it doesn't already exist, and Transforms should wait for the system index to become fully available since Transforms immediately starts searching over the index.

We have existing code to migrate Transforms to new system indices within the PersistentTaskExecutor, we can reuse that when we create new Transforms.

This isn't copied to places like Update because:

  1. Updates can work on old system indices for existing Transforms, and PersistentTaskExecutor will continue to migrate those Transforms.
  2. You cannot update a non-existent Transform anyway.

Fix #117995

Putting a new Transform should create the latest system index if it
doesn't already exist, and Transforms should wait for the system index
to become fully available since Transforms immediately starts searching
over the index.

We have existing code to migrate Transforms to new system indices within
the PersistentTaskExecutor, we can reuse that when we create new
Transforms.

This isn't copied to places like Update because:
1. Updates can work on old system indices for existing Transforms, and
   PersistentTaskExecutor will continue to migrate those Transforms.
2. You cannot update a non-existent Transform anyway.

Fix elastic#117995
@prwhelan prwhelan added >bug :ml/Transform Transform Team:ML Meta label for the ML team v9.0.0 labels Dec 4, 2024
@elasticsearchmachine
Copy link
Collaborator

Hi @prwhelan, I've created a changelog YAML for you.

@prwhelan
Copy link
Member Author

prwhelan commented Dec 4, 2024

@elasticmachine update branch

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 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Transforms] Batch creating Transforms on a new cluster fails
3 participants