Carlo Jelmini created OAK-12229:
-----------------------------------
Summary: 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
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)