Skip to content

Introduce a mechanism to notify plugin before an index/shard folder is going to be deleted from disk#66158

Merged
tlrx merged 4 commits intoelastic:7.xfrom
tlrx:index-folders-deletion-listeners-7.x
Dec 10, 2020
Merged

Introduce a mechanism to notify plugin before an index/shard folder is going to be deleted from disk#66158
tlrx merged 4 commits intoelastic:7.xfrom
tlrx:index-folders-deletion-listeners-7.x

Conversation

@tlrx
Copy link
Copy Markdown
Member

@tlrx tlrx commented Dec 10, 2020

This commit introduces a new type of listeners
IndexStorePlugin.IndexFoldersDeletionListener
that allows plugins to be notified when an index
folder (or a shard folder) is about to be deleted
from disk.

This is useful for some plugins that require to
take an action before folders are deleted, like
searchable snapshots which should evict the
cache files that are contained in the folders.

Backport of #65926 for 7.x

tlrx added 2 commits December 10, 2020 12:38
…s going to be deleted from disk (elastic#65926)

This commit introduces a new type of listeners
IndexStorePlugin.IndexFoldersDeletionListener
that allows plugins to be notified when an index
folder (or a shard folder) is about to be deleted
from disk.

This is useful for some plugins that require to
take an action before folders are deleted, like
searchable snapshots which should evict the
cache files that are contained in the folders.
@tlrx tlrx added >enhancement :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. backport v7.11.0 labels Dec 10, 2020
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Dec 10, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@tlrx tlrx merged commit cc7216e into elastic:7.x Dec 10, 2020
@tlrx tlrx deleted the index-folders-deletion-listeners-7.x branch December 10, 2020 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. >enhancement Team:Distributed Meta label for distributed team. v7.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants