Skip to content

Conversation

@dakrone
Copy link
Member

@dakrone dakrone commented Jun 7, 2021

Backports the following commits to 7.x:

This changes the CopyExecutionStateStep to copy all of the existing state from the original to the
new index after a shrink or searchable snapshot ILM action.

It also has two other changes
First, it fixes issues in LifecycleExecutionState.equals and hashCode where parts were missing,
and modifies the tests better so they would catch these issues better.

Second, it moves the lifecycle policy validation out of the constructor to a new method. This is
required because PolicyStepsRegistry constructs a new LifecyclePolicy out of the cached phase
JSON combined with the policy from the cluster state. In the event that the cached JSON contains an
action that prevents subsequent actions from being defined, we need to leniently allow this
behavior, because those steps will be ignored (see elastic#64883 for this original implementation). The
policy is still validated when loaded elsewhere however.

Resolves elastic#73791
# Conflicts:
#	x-pack/plugin/ilm/qa/multi-node/src/javaRestTest/java/org/elasticsearch/xpack/ilm/actions/SearchableSnapshotActionIT.java
@dakrone dakrone added backport :Data Management/ILM+SLM Index and Snapshot lifecycle management labels Jun 7, 2021
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Jun 7, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@dakrone
Copy link
Member Author

dakrone commented Jun 7, 2021

@elasticmachine update branch

@dakrone dakrone merged commit 67663df into elastic:7.x Jun 7, 2021
@dakrone dakrone deleted the backport/7.x/pr-73792 branch June 7, 2021 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Data Management/ILM+SLM Index and Snapshot lifecycle management Team:Data Management Meta label for data/management team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants