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
(v7.6.14#76016)

Reply via email to