Skip to content

[7.16] Fix after restore Lucene.pruneUnreferencedFiles() conditional (#81047)#81051

Merged
elasticsearchmachine merged 1 commit intoelastic:7.16from
tlrx:backport/7.16/pr-81047
Nov 25, 2021
Merged

[7.16] Fix after restore Lucene.pruneUnreferencedFiles() conditional (#81047)#81051
elasticsearchmachine merged 1 commit intoelastic:7.16from
tlrx:backport/7.16/pr-81047

Conversation

@tlrx
Copy link
Copy Markdown
Member

@tlrx tlrx commented Nov 25, 2021

Backports the following commits to 7.16:

…c#81047)

In elastic#68821 we introduced a condition to skip the pruning of 
unreferenced files after the restore of a snapshot for 
searchable snapshot shards. Sadly I managed to mess 
this up in a refactoring (elastic#75308) few months after.

This commit reintroduces the right conditional which is 
to NOT prune Lucene files for searchable snapshot shards.
@tlrx tlrx added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport labels Nov 25, 2021
@tlrx
Copy link
Copy Markdown
Member Author

tlrx commented Nov 25, 2021

@elasticmachine test this please

@elasticsearchmachine elasticsearchmachine merged commit 2e750af into elastic:7.16 Nov 25, 2021
@danhermann danhermann added v7.16.0 and removed v7.16.1 labels Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v7.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants