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 "Tomek Rękawek (JIRA)" <ji...@apache.org> on 2015/08/18 11:24:51 UTC

[jira] [Updated] (OAK-3249) Some version copy settings conflicts with the earlyShutdown

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

Tomek Rękawek updated OAK-3249:
-------------------------------
    Attachment: OAK-3249.patch

Patch attached.

> Some version copy settings conflicts with the earlyShutdown
> -----------------------------------------------------------
>
>                 Key: OAK-3249
>                 URL: https://issues.apache.org/jira/browse/OAK-3249
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: upgrade
>            Reporter: Tomek Rękawek
>             Fix For: 1.4
>
>         Attachments: OAK-3249.patch
>
>
> The {{RepositoryUpgrade#earlyShutdown}} property causes the source CRX2 repository to shutdown right after copying the content, before the first commit hook is launched. However, the {{VersionableEditor}} hook sometimes needs access to the source repository, to read the version histories that hasn't been copied yet (as the version histories are copied in two stages). As a result, the {{earlyShutdown}} may cause the upgrade process to fail.
> {{earlyShutdown}} should be overriden for all cases in which the source repository is still needed in the commit hook phase. In particular, it should be set to {{false}} if:
> * orphaned version histories are not copied,
> * orphaned version histories are copied, but the copyOrphanedVersion date is set after the copyVersion date.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)