Skip to content

Conversation

@tlrx
Copy link
Member

@tlrx tlrx commented Sep 23, 2021

Today we use the system index .snapshot-blob-cache to
store parts of blobs and to avoid to fetch them again from
the snapshot repository when recovering a searchable
snapshot shard. This index is never cleaned up though
and because it's a system index users won't be able to
clean up manually in the future.

This commit adds a BlobStoreCacheMaintenanceService
which detects the deletion of searchable snapshot indices
and triggers the deletion of associated documents in
.snapshot-blob-cache.

Backport of #77686

elastic#77686)

Today we use the system index .snapshot-blob-cache to 
store parts of blobs and to avoid to fetch them again from 
the snapshot repository when recovering a searchable 
snapshot shard. This index is never cleaned up though 
and because it's a system index users won't be able to
 clean up manually in the future.

This commit adds a BlobStoreCacheMaintenanceService 
which detects the deletion of searchable snapshot indices
 and triggers the deletion of associated documents in 
.snapshot-blob-cache.
@tlrx tlrx added backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v7.16.0 labels Sep 23, 2021
@elasticsearchmachine elasticsearchmachine merged commit 28fbaa7 into elastic:7.x Sep 23, 2021
@tlrx tlrx deleted the blob-cache-maintenance-7.x branch September 23, 2021 16:14
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.

2 participants