]
Brian Stansberry commented on WFCORE-1630:
------------------------------------------
I updated the description to include some more text just in case it helps a searcher find
this. The big issue here was that the logic to synchronize a slave HC after reconnecting
to the master was generating undefine-attribute ops that were then not handled. Turning on
assertions led to the failure being reported but the real failure was the operations were
not handled.
Ordered resources can fail in domain mode with
ava.lang.AssertionError: Unknown operation undefine-attribute
------------------------------------------------------------------------------------------------------------
Key: WFCORE-1630
URL:
https://issues.jboss.org/browse/WFCORE-1630
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Affects Versions: 2.0.10.Final
Reporter: Tomaz Cerar
Assignee: Tomaz Cerar
Fix For: 2.2.0.CR5, 3.0.0.Alpha3
When running in domain mode and using indexed resources, applying of model in domain can
fail with assertion error if assertions are enabled.
{noformat}
[Host Controller] 16:42:39,979 ERROR [org.jboss.as.controller.management-operation] (Host
Controller Service Threads - 11) WFLYCTL0013: Operation
("apply-remote-domain-model") failed - address: ([]): java.lang.AssertionError:
Unknown operation undefine-attribute
[Host Controller] at
org.jboss.as.domain.controller.operations.SyncModelOperationHandler$OrderedOperationsCollection.add(SyncModelOperationHandler.java:704)
[Host Controller] at
org.jboss.as.domain.controller.operations.SyncModelOperationHandler.processAttributes(SyncModelOperationHandler.java:203)
[Host Controller] at
org.jboss.as.domain.controller.operations.SyncModelOperationHandler.compareExistsInBothModels(SyncModelOperationHandler.java:443)
[Host Controller] at
org.jboss.as.domain.controller.operations.SyncModelOperationHandler.processNonOrderedChildrenOfType(SyncModelOperationHandler.java:341)
[Host Controller] at
org.jboss.as.domain.controller.operations.SyncModelOperationHandler.processChildren(SyncModelOperationHandler.java:229)
[Host Controller] at
org.jboss.as.domain.controller.operations.SyncModelOperationHandler.compareExistsInBothModels(SyncModelOperationHandler.java:446)
[Host Controller] at
org.jboss.as.domain.controller.operations.SyncModelOperationHandler.processNonOrderedChildrenOfType(SyncModelOperationHandler.java:341)
[Host Controller] at
org.jboss.as.domain.controller.operations.SyncModelOperationHandler.processChildren(SyncModelOperationHandler.java:229)
[Host Controller] at
org.jboss.as.domain.controller.operations.SyncModelOperationHandler.execute(SyncModelOperationHandler.java:155)
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:890)
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:659)
[Host Controller] at
org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)
[Host Controller] at
org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1329)
[Host Controller] at
org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:400)
[Host Controller] at
org.jboss.as.controller.AbstractControllerService.internalExecute(AbstractControllerService.java:409)
[Host Controller] at
org.jboss.as.host.controller.DomainModelControllerService.access$1000(DomainModelControllerService.java:179)
[Host Controller] at
org.jboss.as.host.controller.DomainModelControllerService$InternalExecutor.execute(DomainModelControllerService.java:1255)
[Host Controller] at
org.jboss.as.host.controller.RemoteDomainConnectionService.applyRemoteDomainModel(RemoteDomainConnectionService.java:575)
[Host Controller] at
org.jboss.as.host.controller.RemoteDomainConnectionService.access$1100(RemoteDomainConnectionService.java:131)
[Host Controller] at
org.jboss.as.host.controller.RemoteDomainConnectionService$2.applyDomainModel(RemoteDomainConnectionService.java:518)
[Host Controller] at
org.jboss.as.host.controller.RemoteDomainConnection.applyDomainModel(RemoteDomainConnection.java:311)
[Host Controller] at
org.jboss.as.host.controller.RemoteDomainConnection$RegisterSubsystemsRequest$1.execute(RemoteDomainConnection.java:454)
[Host Controller] at
org.jboss.as.protocol.mgmt.AbstractMessageHandler$ManagementRequestContextImpl$1.doExecute(AbstractMessageHandler.java:363)
[Host Controller] at
org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:472)
[Host Controller] at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
{noformat}
This was observed in a failure of OrderedChildResourcesTestCase.
Failed tests:
OrderedChildResourcesTestCase.testOrderedChildResources:124 expected:<{
"protocol" => {
"MPING" => undefined,
"MERGE3" => undefined,
"FD_SOCK" => undefined,
"FD" => undefined,
"VERIFY_SUSPECT" => undefined,
"pbcast.NAKACK2" => undefined,
"UNICAST3" => undefined,
"pbcast.STABLE" => undefined,
"pbcast.GMS" => undefined,
"MFC" => undefined,
"FRAG2" => undefined
},
"relay" => undefined,
"transport" => {
"TRANSPORT" => undefined,
"TCP" => undefined
}
}> but was:<{
"protocol" => {
"MPING" => undefined,
"MERGE3" => undefined,
"FD_SOCK" => undefined,
"VERIFY_SUSPECT" => undefined,
"pbcast.NAKACK2" => undefined,
"UNICAST3" => undefined,
"pbcast.STABLE" => undefined,
"pbcast.GMS" => undefined,
"MFC" => undefined,
"FRAG2" => undefined
},
"relay" => undefined,
"transport" => {
"TRANSPORT" => undefined,
"TCP" => undefined
}
}>