Andrei Dulceanu created OAK-8750:
------------------------------------
Summary: SegmentStoreMigrator should catch and log exceptions
thrown while migrating archives
Key: OAK-8750
URL: https://issues.apache.org/jira/browse/OAK-8750
Project: Jackrabbit Oak
Issue Type: Task
Components: segment-azure
Reporter: Andrei Dulceanu
Assignee: Andrei Dulceanu
Fix For: 1.20.0
Current logic used in migrating archives in {{SegmentStoreMigrator}} silently
swallows exceptions coming from the segment, binary refs and graph migration
methods:
{noformat}
try (SegmentArchiveReader reader = sourceManager.forceOpen(archiveName)) {
SegmentArchiveWriter writer = targetManager.create(archiveName);
try {
migrateSegments(reader, writer);
migrateBinaryRef(reader, writer);
migrateGraph(reader, writer);
} finally {
writer.close();
}
}
{noformat}
Adding a catch block which logs the possible exceptions would make analysing
logs easier.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)