Skip to content

Commit 4e5fd77

Browse files
fcofdezmridula-s109
authored andcommitted
Add new CachePopulationReason (elastic#130593)
1 parent 0b396f7 commit 4e5fd77

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/changelog/130593.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 130593
2+
summary: Add new `CachePopulationReason`
3+
area: Store
4+
type: enhancement
5+
issues: []

x-pack/plugin/blob-cache/src/main/java/org/elasticsearch/blobcache/BlobCacheMetrics.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ public enum CachePopulationReason {
4747
/**
4848
* When the data we need is not in the cache
4949
*/
50-
CacheMiss
50+
CacheMiss,
51+
/**
52+
* When data is prefetched upon new commit notifications
53+
*/
54+
PreFetchingNewCommit
5155
}
5256

5357
public BlobCacheMetrics(MeterRegistry meterRegistry) {

0 commit comments

Comments
 (0)