You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2020/08/21 11:11:00 UTC

[jira] [Reopened] (OAK-9170) Make loading segment disk cache fail safe in case when write operation is interrupted by failure

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

Julian Reschke reopened OAK-9170:
---------------------------------

Repeatable test fail on Windows: 

[INFO] Running org.apache.jackrabbit.oak.segment.remote.persistentcache.PersistentDiskCacheTest
[ERROR] Tests run: 6, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 5.252 s <<< FAILURE! - in org.apache.jackrabbit.oak.segment.remote.persistentcache.PersistentDiskCacheTest
[ERROR] testExisting(org.apache.jackrabbit.oak.segment.remote.persistentcache.PersistentDiskCacheTest)  Time elapsed: 1.134 s  <<< FAILURE!
java.lang.AssertionError: containsSegment failed expected:<0> but was:<1000>

[ERROR] writeAndReadManySegments(org.apache.jackrabbit.oak.segment.remote.persistentcache.PersistentDiskCacheTest)  Time elapsed: 1.5 s  <<< FAILURE!
java.lang.AssertionError: Segment(s) not found in cache expected:<0> but was:<1000>

[ERROR] testConcurrentWritesSameSegment(org.apache.jackrabbit.oak.segment.remote.persistentcache.PersistentDiskCacheTest)  Time elapsed: 0.126 s  <<< FAILURE!
java.lang.AssertionError: The segment was not found


> Make loading segment disk cache fail safe in case when write operation is interrupted by failure
> ------------------------------------------------------------------------------------------------
>
>                 Key: OAK-9170
>                 URL: https://issues.apache.org/jira/browse/OAK-9170
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segment-tar
>            Reporter: Miroslav Smiljanic
>            Assignee: Andrei Dulceanu
>            Priority: Major
>             Fix For: 1.34.0
>
>         Attachments: OAK-9170.patch
>
>
> Failure while writing the segment to disk cache, can leave content of the segment partially persisted. That will cause the problems when that same file is later loaded. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)