nfsantos opened a new pull request, #2655: URL: https://github.com/apache/jackrabbit-oak/pull/2655
`CachingSegmentArchiveReader#containsSegment` should not check in the persistent cache for the presence of the segment, because the cache is shared with other instances of this class, so the segment may be in the cache but not in the archive of this reader. Additionally, the current implementation of `containsSegment` in the `PersistenceDiskCache` checks for the presence of a file on disk, which is a slow operation. The `SegmentArchiveReader` implementations all keep an index in memory, so they should be much faster. -- 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]
