Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3747

Provide a way to signal Jcr Installer to pause and resume scanning

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: JCR Installer 3.1.8
    • Component/s: Installer
    • Labels:
      None

      Description

      Currently Sling Installer JCR Provider would listen for observation event and would perform a rescan every 500 msec upon receiving any observation event.

      This at times cause issue when large number of bundles get updated in repository say via installation of bug fixing content package. Further if same content package also updates the repository bundle then it causes issues as repository bundle might get updated midway while content package is still being deployed

      Based on Felix Meschberger suggestion this can be done via introducing a signalling mechanism between component which installs package and JCR Installer. It would work something like this

      1. JCR Installer would check if there is any node under /system/sling/installer/jcr/pauseInstallation as a signal to pause installation.
      2. Package installer would create a child node under the above path before installing the package and remove it post installation

      This should also address the issue in cluster deployment

        Attachments

        1. SLING-3747.patch
          13 kB
          Chetan Mehrotra
        2. SLING-3747-1.patch
          14 kB
          Chetan Mehrotra
        3. SLING-3747-2.patch
          9 kB
          Chetan Mehrotra

          Issue Links

            Activity

              People

              • Assignee:
                chetanm Chetan Mehrotra
                Reporter:
                chetanm Chetan Mehrotra
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: