jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vikas Saurabh (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-8512) Without prefetch CopyOnRead opens index file remoted
Date Mon, 29 Jul 2019 02:37:00 GMT
Vikas Saurabh created OAK-8512:

             Summary: Without prefetch CopyOnRead opens index file remoted
                 Key: OAK-8512
                 URL: https://issues.apache.org/jira/browse/OAK-8512
             Project: Jackrabbit Oak
          Issue Type: Bug
            Reporter: Vikas Saurabh

Without prefetch enabled, CopyOnReadDirectory schedules a copy of file when {{Directory#openInput}}
is invoked. This happens even if there might a copy of file completely available already (maybe
due to CopyOnWriteDirectory). While the scheduled copy would check if the file is valid already
but by that time often index file are accessed remotely.

The fix is fairly simple - don't schedule if file exists locally and passes our weak test
that length matches what we expect.

But, since we strongly advise to enable prefetch, the priority of the issue is minor. Perf
impact would be significant during application start so sev should high I guess.

This message was sent by Atlassian JIRA

View raw message