Index: oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/SegmentCache.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/SegmentCache.java (date 1476260832000) +++ oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/SegmentCache.java (revision ) @@ -29,6 +29,8 @@ import org.apache.jackrabbit.oak.cache.CacheLIRS; import org.apache.jackrabbit.oak.cache.CacheLIRS.EvictionCallback; import org.apache.jackrabbit.oak.cache.CacheStats; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * A cache for {@link Segment} instances by their {@link SegmentId}. @@ -44,6 +46,8 @@ * which always reports a {@link CacheStats#getMissRate() miss rate} of 1. */ public class SegmentCache { + private static final Logger LOG = LoggerFactory.getLogger(SegmentCache.class); + public static final int DEFAULT_SEGMENT_CACHE_MB = 256; private final Weigher weigher = new Weigher() { @@ -89,6 +93,7 @@ @Nonnull public Segment getSegment(@Nonnull SegmentId id, @Nonnull Callable loader) throws ExecutionException { + LOG.info("get segmentId {}", id); return cache.get(id, loader); } @@ -97,6 +102,7 @@ * @param segment the segment to cache */ public void putSegment(@Nonnull Segment segment) { + LOG.info("put segmentId {}", segment.getSegmentId()); cache.put(segment.getSegmentId(), segment); segment.getSegmentId().loaded(segment); } @@ -105,6 +111,7 @@ * Clear all segment from the cache */ public void clear() { + LOG.info("clear"); cache.invalidateAll(); } Index: oak-run/src/main/resources/logback.xml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- oak-run/src/main/resources/logback.xml (date 1476260832000) +++ oak-run/src/main/resources/logback.xml (revision ) @@ -24,6 +24,13 @@ + + target/cache.log + + %date{HH:mm:ss.SSS} %-5level %-40([%thread] %F:%L) %msg%n + + + @@ -43,8 +50,10 @@ + + - + Index: oak-parent/pom.xml IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- oak-parent/pom.xml (date 1476260832000) +++ oak-parent/pom.xml (revision ) @@ -74,7 +74,7 @@ false - 0.0.14 + 0.0.15-SNAPSHOT