-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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] Empty dest index is created when a pipeline with a date_index_name is configured #74547
Comments
Pinging @elastic/ml-core (Team:ML) |
This is by design. Transform creates the destination index if it does not exist at start. This is due to the schema deduction. A manipulation of By design bulk API's require named requests, the name of the index is mandatory:
Either it has to be part of the request path, or specified. Consequently the question should be: Can ingest API's be enhanced to run without If so transform can be enhanced, so it requires either
But this is illegal today, 1st this functionality needs to be provided on a lower level and 2nd transform can use it. Taking a step back and looking at the user story: We are looking into destination index rollover. Today ILM and transform are not integrated with each other, that's why you can't use ILM together with transform without seeing side effects like duplicates. That's why we are looking into ways to provide index rollover as part of transform or make ILM transform aware (hard, probably not possible). In summary, consider this enhancement request as closed by design. However we have plans to provide index rollover capabilities in transform in the future. I am fine with keeping this issue open as a reminder and replace it once I have more information. |
Since this
...Here's a workaround to avoid the empty index...
The result is the index gets immediately accelerated to delete phase even if recreated "indices": {
"ilm-with-transform-test-2020.01.01": {
"index": "ilm-with-transform-test-2020.01.01",
"managed": true,
"policy": "ilm-with-transform-test-ilm-policy",
"index_creation_date_millis": 1706915286359,
"time_since_index_creation": "34.47s",
"lifecycle_date_millis": 1577836800000,
+ "age": "1493.96d",
+ "phase": "delete",
"phase_time_millis": 1706915288070,
"action": "complete",
"action_time_millis": 1706915287870,
"step": "complete",
"step_time_millis": 1706915288070,
"phase_execution": {
"policy": "ilm-with-transform-test-ilm-policy",
"phase_definition": {
"min_age": "60d",
"actions": {}
},
"version": 5,
"modified_date_in_millis": 1706915261510
}
} |
Description of desired versus actual behavior:
The dest index configured in the transform is recreated each time the transform is restarted, even though it remains empty because of the
date_index_name
pipeline.Desired behavior: do not create the index.
Steps to reproduce:
Even if "transform-demo-index" is deleted, it will be recreated when the transform is restarted.
The text was updated successfully, but these errors were encountered: