[
https://issues.apache.org/jira/browse/OAK-12229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18083855#comment-18083855
]
Carlo Jelmini commented on OAK-12229:
-------------------------------------
[PR #2921|https://github.com/apache/jackrabbit-oak/pull/2921]
> JournalReader fails silently on IOException potentially leading to data loss
> ----------------------------------------------------------------------------
>
> Key: OAK-12229
> URL: https://issues.apache.org/jira/browse/OAK-12229
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: segment-tar
> Affects Versions: 1.92.0
> Reporter: Carlo Jelmini
> Priority: Critical
>
> Currently, JournalReader#computeNext swallows any IOException and returns
> null, which is
> interpreted as an empty journal. This is dangerous as a transient exception,
> for example from AzureJournalFileReader during an Azure outage, while the
> FileStore is created, can lead it to believe it's starting from an empty
> root, unreferencing all existing data and causing all data to be lost.
> The existing JournalReader#computeNext own javadoc says the method should
> throw an IllegalStateExceeption on IOExceptions.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)