Skip to content

Conversation

tlrx
Copy link
Member

@tlrx tlrx commented Jun 10, 2021

This failure can happen if the after test logic in
EsRestTestCase.wipeSearchableSnapshotsIndices()
correctly found a searchable snapshot index to
delete but that index was already deleted and
converted to an alias in the meanwhile, by the
last step of the ILM searchable snapshot action
for frozen phase.

This in-flight alias swap while the partially index
has a completed ILM state is possible because
of the CopyExecutionStateStep which updates
the cluster state with completed in frozen phase
and the alias swap request is executed after the
updated cluster state is published.

Backport of #73888
Closes #73706

…llToPartial (elastic#73888)

This failure can happen if the after test logic in 
EsRestTestCase.wipeSearchableSnapshotsIndices() 
correctly found a searchable snapshot index to 
delete but that index was already deleted and 
converted to an alias in the meanwhile, by the 
last step of the ILM searchable snapshot action 
for frozen phase.

This in-flight alias swap while the partially index 
has a completed ILM state is possible because 
of the CopyExecutionStateStep which updates 
the cluster state with completed in frozen phase 
and the alias swap request is executed after the 
updated cluster state is published.

Closes elastic#73706
@tlrx tlrx added >test Issues or PRs that are addressing/adding tests :Data Management/ILM+SLM Index and Snapshot lifecycle management backport v7.13.2 labels Jun 10, 2021
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Jun 10, 2021
@elasticmachine
Copy link
Collaborator

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

@tlrx tlrx merged commit 882cd6e into elastic:7.13 Jun 10, 2021
@tlrx tlrx deleted the fix-testConvertingSearchableSnapshotFromFullToPartial-7.13 branch June 10, 2021 10:47
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 >test Issues or PRs that are addressing/adding tests v7.13.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants