Skip to content

Conversation

@tlrx
Copy link
Member

@tlrx tlrx commented Mar 2, 2020

This pull request adds an API to clear the cache used for searchable snapshots:

POST /_searchable_snapshots/cache/clear
POST <index>/_searchable_snapshots/cache/clear

This API is useful in tests or to simply free disk space if needed. Note that this API does not clear cache stats.

Relates #50999

@tlrx tlrx added >enhancement :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs labels Mar 2, 2020
@tlrx tlrx requested a review from DaveCTurner March 2, 2020 14:48
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore)

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I left four very minor comments.

@tlrx
Copy link
Member Author

tlrx commented Mar 2, 2020

@elasticmachine run elasticsearch-ci/bwc
@elasticmachine run elasticsearch-ci/oss-distro-docs

@tlrx
Copy link
Member Author

tlrx commented Mar 3, 2020

@elasticmachine run elasticsearch-ci/bwc

@tlrx
Copy link
Member Author

tlrx commented Mar 3, 2020

@elasticmachine update branch

@tlrx tlrx merged commit d713b9e into elastic:feature/searchable-snapshots Mar 3, 2020
@tlrx tlrx deleted the add-clear-cache-api branch March 3, 2020 12:14
@tlrx
Copy link
Member Author

tlrx commented Mar 3, 2020

Thanks David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants