Skip to content

Conversation

@dakrone
Copy link
Member

@dakrone dakrone commented Oct 2, 2019

This is a backport of #47405

This commit adds the /_slm/_execute_retention API endpoint. This
endpoint kicks off SLM retention and then returns immediately.

This in particular allows us to run retention without scheduling it
(for entirely manual invocation) or perform a one-off cleanup.

This commit also includes HLRC for the new API, and fixes an issue
in SLMSnapshotBlockingIntegTests where retention invoked prior to the
test completing could resurrect an index the internal test cluster
cleanup had already deleted.

Resolves #46508
Relates to #43663

This is a backport of elastic#47405

This commit adds the `/_slm/_execute_retention` API endpoint. This
endpoint kicks off SLM retention and then returns immediately.

This in particular allows us to run retention without scheduling it
(for entirely manual invocation) or perform a one-off cleanup.

This commit also includes HLRC for the new API, and fixes an issue
in SLMSnapshotBlockingIntegTests where retention invoked prior to the
test completing could resurrect an index the internal test cluster
cleanup had already deleted.

Resolves elastic#46508
Relates to elastic#43663
@dakrone dakrone added :Data Management/ILM+SLM Index and Snapshot lifecycle management backport v7.5.0 labels Oct 2, 2019
@elasticmachine
Copy link
Collaborator

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

@dakrone dakrone merged commit 2e3eb4b into elastic:7.x Oct 2, 2019
@dakrone dakrone deleted the 7.x-add-slm-retention-execute branch October 2, 2019 18:29
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 v7.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants