]
Jeff Mesnil commented on WFLY-5399:
-----------------------------------
I agree that #2 is the cleanest solution.
We should not need to make a extra case for the "removed" notification as long
as we check that the resource describes the notifications when there is a resource to act
upon.
The reason the notifications descriptions are checked at the end of the action was to
ensure that we only do the check for actions that are successful. I did not want to have
WARN about missing notifications descriptions for an operation that rolls back anyway.
However, I have no problem to change that as this issue is more "visible" by
having a well described resource logging _false_ warnings when the operation is
successful.
By changing the code to #2, the description of the notification will be checked when the
resource description is still valid and the notifications will still be sent as expected.
Warning about undescribed notifications must not prevent the notifications to actually be
emitted.
: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.