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

Elemer Kisch updated SLING-6393:
--------------------------------
    Description: 
Sling installer can duplicate factory configurations on opposite node if 
configuration is changed on local cluster node:

Reproducible on RDMBK-DB2 cluster environment.

{noformat}

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'
{noformat}

{noformat}
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 .
{noformat}

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.





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

Reproducible on RDMBK-DB2 cluster environment.

{noformat}

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'
{noformat}

{noformat}
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 .
{noformat}

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.

FI-like VMs :
root/cold!

primary:
http://10.36.65.97:9081/cq-quickstart-6.0.0/system/console/slinglog
secondary:
http://10.36.65.186:9081/cq-quickstart-6.0.0/system/console/slinglog






> Sling installer can duplicate factory configurations on opposite node if 
> configuration is changed on local cluster node
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-6393
>                 URL: https://issues.apache.org/jira/browse/SLING-6393
>             Project: Sling
>          Issue Type: Bug
>          Components: Installer
>            Reporter: Elemer Kisch
>            Assignee: Robert Munteanu
>
> Sling installer can duplicate factory configurations on opposite node if 
> configuration is changed on local cluster node:
> Reproducible on RDMBK-DB2 cluster environment.
> {noformat}
> 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'
> {noformat}
> {noformat}
> 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 .
> {noformat}
> 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.



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

Reply via email to