]
Brian Stansberry commented on WFLY-5399:
----------------------------------------
Three possible solutions:
1) Revert WLFY-5306. But that's not a true solution, as a user could create a
composite op that removes a subsystem and then drops the extension in the final step, and
they'd get the same behavior.
2) Move the validation to when the notification is registered (OperationContext.emit())
instead of when the OC sends it out. At that point the resource registration should still
be there.
3) Change the validation logic to check whether the resource registration still exists
when it finds undescribed notifications; if not assume the op has removed the previously
existing notification.
#2 sounds like the cleanest solution; I'll just check with [~jmesnil] about whether
there is any reason we needed to defer the validation. I also want to discuss whether
sending out a notification for a no-longer existing resource might cause a problem. The
current validation logic isn't preventing sending out the notification though; all it
does is log the WARN. So continuing to send them out will not be a behavior change.
:migrate operation shows warning "WFLYCTL0357: Notification of
type resource-removed is not described" in log
-------------------------------------------------------------------------------------------------------------
Key: WFLY-5399
URL:
https://issues.jboss.org/browse/WFLY-5399
Project: WildFly
Issue Type: Bug
Components: Domain Management
Affects Versions: 10.0.0.CR1
Reporter: Ondřej Chaloupka
Assignee: Brian Stansberry
When I use migration operation the console log is filled with warning messages of type
{{WARN [org.jboss.as.controller] (management-handler-thread - 1) WFLYCTL0357:
Notification of type resource-removed is not described for the resource at the address
[("subsystem" => "jacorb")]}}
This is the same either for jacorb or web or messaging subsystem. If I do the sequence of
operation
{code}
[standalone@localhost:9999 /] /subsystem=jacorb:migrate()
{
"outcome" => "success",
"result" => {"migration-warnings" => []}
}
[standalone@localhost:9999 /] /subsystem=messaging:migrate()
{
"outcome" => "success",
"result" => {"migration-warnings" => []}
}
[standalone@localhost:9999 /] /subsystem=we
web webservices weld
[standalone@localhost:9999 /] /subsystem=web
web webservices
[standalone@localhost:9999 /] /subsystem=web:migrate()
{
"outcome" => "success",
"result" => {"migration-warnings" => []}
}
{code}
then I the log looks like
{code}
2015-09-24 08:41:09,729 WARN [org.jboss.as.controller] (management-handler-thread - 1)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [("subsystem" => "jacorb")]
2015-09-24 08:43:13,229 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("jms-queue" => "DLQ")
]
2015-09-24 08:43:13,230 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("jms-queue" => "ExpiryQueue")
]
2015-09-24 08:43:13,230 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("pooled-connection-factory" => "hornetq-ra")
]
2015-09-24 08:43:13,230 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("connection-factory" => "RemoteConnectionFactory")
]
2015-09-24 08:43:13,231 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("connection-factory" => "InVmConnectionFactory")
]
2015-09-24 08:43:13,231 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("address-setting" => "#")
]
2015-09-24 08:43:13,231 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("security-setting" => "#"),
("role" => "guest")
]
2015-09-24 08:43:13,232 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("security-setting" => "#")
]
2015-09-24 08:43:13,232 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("in-vm-acceptor" => "in-vm")
]
2015-09-24 08:43:13,232 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("remote-acceptor" => "netty-throughput"),
("param" => "direct-deliver")
]
2015-09-24 08:43:13,233 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("remote-acceptor" => "netty-throughput"),
("param" => "batch-delay")
]
2015-09-24 08:43:13,233 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("remote-acceptor" => "netty-throughput")
]
2015-09-24 08:43:13,233 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("remote-acceptor" => "netty")
]
2015-09-24 08:43:13,234 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("in-vm-connector" => "in-vm")
]
2015-09-24 08:43:13,234 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("remote-connector" => "netty-throughput"),
("param" => "batch-delay")
]
2015-09-24 08:43:13,234 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("remote-connector" => "netty-throughput")
]
2015-09-24 08:43:13,235 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default"),
("remote-connector" => "netty")
]
2015-09-24 08:43:13,235 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "messaging"),
("hornetq-server" => "default")
]
2015-09-24 08:43:13,235 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [("subsystem" => "messaging")]
2015-09-24 08:43:20,957 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "web"),
("configuration" => "jsp-configuration")
]
2015-09-24 08:43:20,957 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "web"),
("configuration" => "static-resources")
]
2015-09-24 08:43:20,958 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "web"),
("configuration" => "container")
]
2015-09-24 08:43:20,958 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "web"),
("virtual-server" => "default-host")
]
2015-09-24 08:43:20,958 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [
("subsystem" => "web"),
("connector" => "http")
]
2015-09-24 08:43:20,959 WARN [org.jboss.as.controller] (management-handler-thread - 7)
WFLYCTL0357: Notification of type resource-removed is not described for the resource at
the address [("subsystem" => "web")]
{code}
I think that the migration operation should not show those warnings.