Skip to content

Commit 7dd88e7

Browse files
committed
Also add a log message
1 parent 585fa3b commit 7dd88e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ public void recordCachePopulationMetrics(
144144
assert bytesCopied > 0 : "We shouldn't be recording zero-sized copies";
145145
cachePopulationBytes.incrementBy(bytesCopied, metricAttributes);
146146

147+
if (luceneFilesExtensions == null) {
148+
logger.warn("Blob cache population for file [{}]. This may indicate a new file type that needs to be registered.", blobName);
149+
}
150+
147151
// This is almost certainly paranoid, but if we had a very fast/small copy with a very coarse nanosecond timer it might happen?
148152
if (copyTimeNanos > 0) {
149153
cachePopulationThroughput.record(toMebibytesPerSecond(bytesCopied, copyTimeNanos), metricAttributes);

0 commit comments

Comments
 (0)