smiroslav commented on code in PR #2901:
URL: https://github.com/apache/jackrabbit-oak/pull/2901#discussion_r3258677169
##########
oak-segment-remote/src/main/java/org/apache/jackrabbit/oak/segment/remote/persistentcache/RemotePersistentCacheService.java:
##########
@@ -93,6 +95,12 @@ private PersistentCache createPersistentCache(Configuration
configuration, Close
PersistentDiskCache persistentDiskCache = new
PersistentDiskCache(new File(configuration.diskCacheDirectory()),
configuration.diskCacheMaxSizeMB(), diskCacheIOMonitor);
closer.register(persistentDiskCache);
+ // OAK-12212: expose the kill switch for the cacheSize-accounting
+ // fix so it can be flipped at runtime via the Whiteboard.
+ registerCloseable(osgiWhiteboard.register(FeatureToggle.class,
Review Comment:
In other places in the code I see utility function
`org.apache.jackrabbit.oak.spi.toggle.Feature#newFeature` is used.
Then `org.apache.jackrabbit.oak.spi.toggle.Feature#isEnabled` can be used to
check the state.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]