[ https://issues.apache.org/jira/browse/OAK-5193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomek Rękawek updated OAK-5193: ------------------------------- Attachment: OAK-5193-fix.groovy Attached a script that fixes the version histories corrupted by this bug. It's still required to update Oak, so the version storage won't be corrupted again. Usage: {noformat} java -jar oak-run-*.jar console repository/segmentstore ":load OAK-5193-fix.groovy" | tee script.log {noformat} > Version tree may become inconsistent after removing a version > ------------------------------------------------------------- > > Key: OAK-5193 > URL: https://issues.apache.org/jira/browse/OAK-5193 > Project: Jackrabbit Oak > Issue Type: Bug > Components: jcr > Affects Versions: 1.0.35, 1.2.21, 1.4.10, 1.5.14 > Reporter: Tomek Rękawek > Assignee: Tomek Rękawek > Fix For: 1.6, 1.5.15, 1.4.11, 1.0.36, 1.2.22 > > Attachments: OAK-5193-fix.groovy, version-histories.png > > > When a version is removed, its predecessors and successors are connected > together, to keep the version tree consistent. However, if the removed > version predecessor has its own successors, they are replaced with the > removed version successors. Similarly, if the removed version successor has > its own predecessors, they'll be replaced with the removed version > predecessors. > !version-histories.png! > They should be merged together, instead. -- This message was sent by Atlassian JIRA (v6.3.4#6332)