Nuno Santos created OAK-12552:
---------------------------------

             Summary: Propagate interrupted segment reads instead of reporting 
missing segments
                 Key: OAK-12552
                 URL: https://issues.apache.org/jira/browse/OAK-12552
             Project: Jackrabbit Oak
          Issue Type: Bug
            Reporter: Nuno Santos


When a segment read from the persistent disk cache is interrupted, 
{{PersistentDiskCache}} handles {{ClosedByInterruptException}} as an ordinary 
I/O error and returns a cache miss. Cancellation can then trigger an 
unnecessary backend read or surface as {{SegmentNotFoundException}}, which can 
cause a consistency check to report false corruption.

Propagate interruption as cancellation through the cache and segment-store read 
paths, including linked caches and read-only stores. Add regression tests that 
distinguish interrupted reads from genuinely missing segments and verify that 
an interrupted cache hit does not invoke the backend loader.

This fixes the existing cache independently of 
[OAK-12551|https://issues.apache.org/jira/browse/OAK-12551].



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to