[ https://issues.apache.org/jira/browse/OAK-9797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17553674#comment-17553674 ]
Marcel Reutegger commented on OAK-9797: --------------------------------------- I'm able to reproduce on a FileCache with zero size. See additional assert in FileCacheTest#zeroCache in https://github.com/apache/jackrabbit-oak/pull/593 The fix I propose is rather simple. FileCacheStats for the zero size cache just gets an empty CacheLIRS. [~rishudaim], WDYT? > Direct access blob cache override breaks metrics and monitoring > --------------------------------------------------------------- > > Key: OAK-9797 > URL: https://issues.apache.org/jira/browse/OAK-9797 > Project: Jackrabbit Oak > Issue Type: Bug > Reporter: Rishabh Kumar > Assignee: Marcel Reutegger > Priority: Major > > We are getting several exceptions in the CacheStats > (DataStore-DownloadCache) after overriding certain parameters. > > List of overrridden params includes (but not limited to): > minRecordLength > maxCachedBinarySize > cacheSize > {color:#172b4d}directAccess/{color}[author|publish]{color:#172b4d}/blobCacheSize{color} > > {color:#172b4d}All the fields in Stats/Metrics gave > java.lang.UnSupportedOperationException{color} > -- This message was sent by Atlassian Jira (v8.20.7#820007)