[ 
https://issues.apache.org/jira/browse/OAK-12034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joerg Hoh reassigned OAK-12034:
-------------------------------

    Assignee: Nuno Santos

> 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
>            Assignee: Nuno Santos
>            Priority: Minor
>             Fix For: 1.90.0
>
>
> 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)

Reply via email to