Nuno Santos created OAK-12034:
---------------------------------
Summary: CachingSegmentArchiveReader#containsSegment should not
check the persistence cache for the segment
Key: OAK-12034
URL: https://issues.apache.org/jira/browse/OAK-12034
Project: Jackrabbit Oak
Issue Type: Bug
Components: segment-tar
Reporter: Nuno Santos
Reported by [~mreutegg]
"The implementation first checks if the segment is present in the persistent
cache. This is actually not correct. A segment may be present in the cache, but
that doesn't mean the segment belongs to the archive this reader is based on.
All archive reader implementations also keep an in-memory index of segments
they contain. That is, calling delegate.containsSegment() should be cheaper and
not involve I/O."
--
This message was sent by Atlassian Jira
(v8.20.10#820010)