Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-3249

Some version copy settings conflicts with the earlyShutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.5, 1.4
    • upgrade
    • None
    • Patch

    Description

      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.

      Attachments

        1. OAK-3249.patch
          3 kB
          Tomek Rękawek

        Activity

          People

            mreutegg Marcel Reutegger
            tomek.rekawek Tomek Rękawek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: