The interface method org.apache.jackrabbit.oak.cache.CacheValue.getMemory() returns an int value, while some implementations measure values larger than Integer.MAX_VALUE, producing an int overflow. This actually breaks in real life when testing with huge repos and machines, since it's used to measure the size of local diffs (e.g. a reindexing may diff the whole repo against an empty root).
- relates to
OAK-5132 Limit diff cache entries in size