[jboss-jira] [JBoss JIRA] (AS7-1996) Unsuccessfull deployment-scanner:add operation changes runtime state
Brian Stansberry (Commented) (JIRA)
jira-events at lists.jboss.org
Tue Oct 4 10:13:16 EDT 2011
[ https://issues.jboss.org/browse/AS7-1996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632158#comment-12632158 ]
Brian Stansberry commented on AS7-1996:
---------------------------------------
My assumption is the rollback logic for the "add" operation is failing to fully clean up, so the MSC service created for the path is left around.
> Unsuccessfull deployment-scanner:add operation changes runtime state
> --------------------------------------------------------------------
>
> Key: AS7-1996
> URL: https://issues.jboss.org/browse/AS7-1996
> Project: Application Server 7
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 7.1.0.Alpha1
> Reporter: Dominik Pospisil
> Assignee: Brian Stansberry
>
> Steps to reproduce:
> 1) Start standalone server
> 2) Issue:
> /subsystem=deployment-scanner/scanner=testScanner:add(scan-interval=2000,path="/noexisiting")
> where /noexisting is some incorrect path
> 3) Issue:
> /subsystem=deployment-scanner/scanner=testScanner:add(scan-interval=2000,path="/tmp/test")
> where /tmp/test is a valid path
> I think that the expected result would be that the step 2 fails and it does not affect runtime nor configuration model.
> The result of step 3 should be then a success however it is actually a failure:
> 08:45:25,421 ERROR [org.jboss.as.controller] (pool-3-thread-8) Operation ("add") failed - address: ([
> ("subsystem" => "deployment-scanner"),
> ("scanner" => "testScanner")
> ]): org.jboss.msc.service.DuplicateServiceException: Service jboss.server.deployment.scanner.testScanner.path is already registered
> at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:226) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2211) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list