[jboss-jira] [JBoss JIRA] (WFCORE-4153) Capability 'org.wildfly.nosql.mongo.driver-service' is unknown error thrown on WildFly 14 + current master branch

Brian Stansberry (Jira) issues at jboss.org
Fri Oct 5 21:52:00 EDT 2018


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

Brian Stansberry edited comment on WFCORE-4153 at 10/5/18 9:51 PM:
-------------------------------------------------------------------

OK, I see the problem.

WFCORE-3751 broke this by discarding the information from the dependent capability passed to the attribute definition builder as to whether it is a dynamic capability and having DefaultCapabilityReferenceRecorder instead figure that out from re-looking up the cap from the MRR. But that lookup will only work if the MRR for the AD is the same as the one that registers the capability. That's not the case in the mongodb subsystem, where it's the subsystem root the registers the dependent cap, and the HostDefinition child that registers the AD.

A possible simple thing to improve this is to not discard the fact that a dependent is NOT dynamic. AIUI the problem WFCORE-3751 was fixing was with how dynamic dependents were handled.


was (Author: brian.stansberry):
OK, I see the problem.

> Capability 'org.wildfly.nosql.mongo.driver-service' is unknown error thrown on WildFly 14 + current master branch
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: WFCORE-4153
>                 URL: https://issues.jboss.org/browse/WFCORE-4153
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Management
>    Affects Versions: 6.0.1.Final
>            Reporter: Scott Marlow
>            Assignee: Jeff Mesnil
>            Priority: Major
>
> As reported on [https://issues.jboss.org/browse/WFNOSQL-28], the wildfly-nosql subsystems are failing on WF14.  I will try to work around the failure, following Brian's advice but would still like to see this resolved for other (externally created) subsystems that might hit it.
> Example of failure:
> {quote}
> 2018-10-04 11:09:17,904 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool – 10) WFLYCTL0013: Operation ("add") failed - address: ([("subsystem" => "mongodb"),("mongo" => "default"),("host" => "default")
> ]): java.lang.IllegalStateException: WFLYCTL0364: Capability 'org.wildfly.nosql.mongo.driver-service' is unknown.
> at org.jboss.as.controller.CapabilityReferenceRecorder$DefaultCapabilityReferenceRecorder.getDependentName(CapabilityReferenceRecorder.java:139)
> at org.jboss.as.controller.CapabilityReferenceRecorder$ContextDependencyRecorder.processCapabilityRequirement(CapabilityReferenceRecorder.java:196)
> at org.jboss.as.controller.CapabilityReferenceRecorder$ContextDependencyRecorder.addCapabilityRequirements(CapabilityReferenceRecorder.java:182)
> at org.jboss.as.controller.AttributeDefinition.addCapabilityRequirements(AttributeDefinition.java:1066)
> at org.jboss.as.controller.AbstractAddStepHandler.recordCapabilitiesAndRequirements(AbstractAddStepHandler.java:291)
> at org.jboss.as.controller.AbstractAddStepHandler.execute(AbstractAddStepHandler.java:154)
> at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:999)
> at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:743)
> at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:467)
> at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:384)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
> at java.lang.Thread.run(Thread.java:748)
> at org.jboss.threads.JBossThread.run(JBossThread.java:485)
> {quote}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)



More information about the jboss-jira mailing list