-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
ILM: Allow searchable_snapshot
to follow searchable_snapshot
#68864
ILM: Allow searchable_snapshot
to follow searchable_snapshot
#68864
Conversation
We added this validation for the hot phase as that was the only place a searchable_snapshot action could precede another `searchable_snapshot` action. This is not the case anymore and we now support multiple actions in the same policy. This changes the validation to allow the `searchable_snapshot` *in the hot phase* to be followed by other `searchable_snapshot` actions.
Pinging @elastic/es-core-features (Team:Core/Features) |
singletonMap(SearchableSnapshotAction.NAME, new SearchableSnapshotAction(snapshotRepo, randomBoolean(), | ||
MountSearchableSnapshotRequest.Storage.SHARED_CACHE))), | ||
createPolicy(client(), policy, | ||
new Phase("hot", TimeValue.ZERO, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Piggybacked the hot -> frozen searchable_snapshot actions scenario on this test (as it wasn't tested anywhere)
@elasticmachine update branch |
This is still a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll wait until this isn't a WIP before approving :)
This expands the validation to include the cases where the frozen action defines illegal actions after a searchable_snapshot defined in the cold phase.
@elasticmachine update branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for fixing this
@elasticmachine run elasticsearch-ci/2 |
…stic#68864) We added this validation for the hot phase as that was the only place a searchable_snapshot action could precede another `searchable_snapshot` action. This is not the case anymore and we now support multiple actions in the same policy. This expands the validation to include the cases where the frozen action defines illegal actions after a searchable_snapshot defined in the cold phase. (cherry picked from commit c10ba9e) Signed-off-by: Andrei Dan <andrei.dan@elastic.co> # Conflicts: # x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/ilm/TimeseriesLifecycleTypeTests.java
#68864) (#68972) We added this validation for the hot phase as that was the only place a searchable_snapshot action could precede another `searchable_snapshot` action. This is not the case anymore and we now support multiple actions in the same policy. This expands the validation to include the cases where the frozen action defines illegal actions after a searchable_snapshot defined in the cold phase. (cherry picked from commit c10ba9e) Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
We added this validation for the hot phase as that was the only place a
searchable_snapshot action could precede another
searchable_snapshot
action.This is not the case anymore and we now support multiple actions in the
same policy.
This changes the validation to allow the
searchable_snapshot
in the hotphase to be followed by other
searchable_snapshot
actions.