Skip to content

Commit 039f7c7

Browse files
committed
Add new CachePopulationReason
1 parent f15ef7c commit 039f7c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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+
PreFetching
5155
}
5256

5357
public BlobCacheMetrics(MeterRegistry meterRegistry) {

0 commit comments

Comments
 (0)