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

Sling installer can duplicate factory configurations on opposite node if configuration is changed on local cluster node

    XMLWordPrintableJSON

Details

    Description

      Sling installer can duplicate factory configurations on opposite node if configuration is changed on local cluster node:

      Reproducible on RDMBK-DB2 cluster environment.

      06.12.2016 16:38:35.021 *INFO* [OsgiInstallerImpl] org.apache.sling.audit.osgi.installer Installed configuration org.apache.sling.commons.log.LogManager.factory.config.8af9a8a1-a3ad-4699-980d-6494aad6314e from resource TaskResource(url=jcrinstall:/apps/system/config/org.apache.sling.commons.log.LogManager.factory.config-audit.log.config, entity=config:org.apache.sling.commons.log.LogManager.factory.config.audit.log, state=INSTALL, attributes=[org.apache.sling.installer.api.tasks.ResourceTransformer=:28:84:, service.factoryPid=org.apache.sling.commons.log.LogManager.factory.config, service.pid=audit.log], digest=562d244ccd03c4e8b208ec6e8488a131)
      06.12.2016 16:46:56.140 *INFO* [JcrInstaller.1] org.apache.sling.installer.provider.jcr.impl.JcrInstaller Registering resource with OSGi installer: [InstallableResource, priority=200, id=/apps/system/config/org.apache.sling.commons.log.LogManager.factory.config-audit.log.config]
      06.12.2016 16:46:56.176 *INFO* [OsgiInstallerImpl] org.apache.sling.audit.osgi.installer Installed configuration org.apache.sling.commons.log.LogManager.factory.config.8af9a8a1-a3ad-4699-980d-6494aad6314e from resource TaskResource(url=jcrinstall:/apps/system/config/org.apache.sling.commons.log.LogManager.factory.config-audit.log.config, entity=config:org.apache.sling.commons.log.LogManager.factory.config.audit.log, state=INSTALL, attributes=[org.apache.sling.installer.api.tasks.ResourceTransformer=:28:84:, service.factoryPid=org.apache.sling.commons.log.LogManager.factory.config, service.pid=audit.log], digest=24ee5abae6a89146693d896e8376f046)
      06.12.2016 16:48:55.674 *INFO* [JcrInstaller.1] org.apache.sling.installer.provider.jcr.impl.JcrInstaller Registering resource with OSGi installer: [InstallableResource, priority=200, id=/apps/system/config/org.apache.sling.commons.log.LogManager.config]
      06.12.2016 16:48:55.715 *INFO* [OsgiInstallerImpl] org.apache.sling.audit.osgi.installer Installed configuration org.apache.sling.commons.log.LogManager from resource TaskResource(url=jcrinstall:/apps/system/config/org.apache.sling.commons.log.LogManager.config, entity=config:org.apache.sling.commons.log.LogManager, state=INSTALL, attributes=[org.apache.sling.installer.api.tasks.ResourceTransformer=:28:84:, service.pid=org.apache.sling.commons.log.LogManager], digest=ab4ea1c2827b4a27163236320694c81d)
      06.12.2016 17:00:30.004 *INFO* [pool-11-thread-3] com.adobe.granite.taskmanagement.impl.jcr.TaskArchiveService archiving tasks at: 'Tue Dec 06 17:00:30 CET 2016'
      
      Suse-001:/data/software/wlp/usr/servers/server1 # cd -
      /data/software/wlp/usr/servers/server1/crx-quickstart/launchpad/config/org/apache/sling/commons/log/LogManager/factory/config
      Suse-001:/data/software/wlp/usr/servers/server1/crx-quickstart/launchpad/config/org/apache/sling/commons/log/LogManager/factory/config # ls -lart
      total 28
      -rw-r--r-- 1 root root 377 Jun 11 2015 8ab79cc1-780e-4f4d-b967-c95774fb2bcb.config
      -rw-r--r-- 1 root root 375 Jun 11 2015 31887166-1934-4f82-9420-0146bcb8d20c.config
      -rw-r--r-- 1 root root 413 Jun 11 2015 40697bf8-0ffc-47e9-b8f3-08a0d3b36511.config
      -rw-r--r-- 1 root root 505 Jun 11 2015 3ffce209-310b-448b-9d0b-b5d0ea33f1f2.config
      drwxr-xr-x 4 root root 96 Jun 11 2015 ..
      -rw-r--r-- 1 root root 435 Jun 11 2015 36b4a289-61ee-4fc2-a71d-fa5445cb9b5d.config
      -rw-r----- 1 root root 653 Nov 11 15:32 factory.config
      -rw-r----- 1 root root 352 Dec 6 16:46 8af9a8a1-a3ad-4699-980d-6494aad6314e.config
      drwxr-xr-x 2 root root 464 Dec 6 16:46 .
      

      Please have a look at the 16:46 occurrence. Just changing on the secondary cluster via OSGi Console, e.g. the audit.log log level from INFO to ERROR, you should get the same duplication.

      For an environment to reproduce, please contact me.

      Attachments

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              elemer Elemer Kisch
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: