-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Optimise shared-blob-cache evictions #126581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
c86859c
c143dba
a62ac00
6ae1e7c
ff3a25d
2ef16c9
d3ce506
bd35686
83c1bda
632afbc
3274c1c
253dba1
f035f25
7ac3220
8e18644
410fb35
2372056
8c91b45
87d1ba4
ea43b2d
c6e7a05
7eebc42
250df4c
d3cd806
5eabc0f
53ad877
fa17c66
69e748f
f498216
185b390
c2f3b0f
63f4b1f
cd09f7d
69eb2e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 126581 | ||
| summary: Evict from the shared blob cache asynchronously | ||
| area: Searchable Snapshots | ||
| type: enhancement | ||
| issues: [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,8 +72,12 @@ private void markShardAsEvictedInCache(ShardId shardId, IndexSettings indexSetti | |
| shardId | ||
| ); | ||
|
|
||
| final SharedBlobCacheService<CacheKey> sharedBlobCacheService = this.frozenCacheServiceSupplier.get(); | ||
| assert sharedBlobCacheService != null : "frozen cache service not initialized"; | ||
| sharedBlobCacheService.forceEvict(SearchableSnapshots.forceEvictPredicate(shardId, indexSettings.getSettings())); | ||
| // Only partial searchable snapshots use the SharedBlobCacheService | ||
| if (indexSettings.getIndexMetadata().isPartialSearchableSnapshot()) { | ||
| final SharedBlobCacheService<CacheKey> sharedBlobCacheService = | ||
| SearchableSnapshotIndexFoldersDeletionListener.this.frozenCacheServiceSupplier.get(); | ||
| assert sharedBlobCacheService != null : "frozen cache service not initialized"; | ||
| sharedBlobCacheService.forceEvictAsync(SearchableSnapshots.forceEvictPredicate(shardId, indexSettings.getSettings())); | ||
|
||
| } | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.