[jboss-jira] [JBoss JIRA] (WFLY-5601) Failure to add a datasource with a name that was previously used

Brian Stansberry (JIRA) issues at jboss.org
Thu Oct 29 14:09:00 EDT 2015


    [ https://issues.jboss.org/browse/WFLY-5601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123535#comment-13123535 ] 

Brian Stansberry commented on WFLY-5601:
----------------------------------------

Just to record a synopsis of some chats today. The behavior of reload shouldn't matter. Once the remove op returns successfully, the capability should be removed. It's not, which is a bug, specifically WFCORE-1086.

> Failure to add a datasource with a name that was previously used
> ----------------------------------------------------------------
>
>                 Key: WFLY-5601
>                 URL: https://issues.jboss.org/browse/WFLY-5601
>             Project: WildFly
>          Issue Type: Bug
>          Components: Domain Management
>            Reporter: Heiko Braun
>            Assignee: Brian Stansberry
>            Priority: Blocker
>             Fix For: 10.0.0.Final
>
>
> Steps to re-create: create DS, remove it, reload and then add again (using the same name for the DS)
> This leads to:
> {noformat}
> java.lang.IllegalStateException: WFLYCTL0363: Capability 'org.wildfly.data-source.swarm-integration-test' is already registered in context 'global'.
> 	at org.jboss.as.controller.CapabilityRegistry.registerCapability(CapabilityRegistry.java:146)
> 	at org.jboss.as.controller.OperationContextImpl.registerCapability(OperationContextImpl.java:1422)
> 	at org.jboss.as.controller.OperationContextImpl.registerCapability(OperationContextImpl.java:1414)
> 	at org.jboss.as.controller.AbstractAddStepHandler.recordCapabilitiesAndRequirements(AbstractAddStepHandler.java:274)
> 	at org.jboss.as.controller.AbstractAddStepHandler.execute(AbstractAddStepHandler.java:146)
> 	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:890)
> 	at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:659)
> 	at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)
> 	at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1336)
> 	at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:392)
> 	at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:217)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list