[jboss-jira] [JBoss JIRA] (WFLY-6504) [Migration operation] wrong resource address in migration warning

Miroslav Novak (JIRA) issues at jboss.org
Fri Apr 8 04:21:00 EDT 2016


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

Miroslav Novak commented on WFLY-6504:
--------------------------------------

Yes, the word "from" is misleading. Let's see how we unify on  JBEAP-4116. 

> [Migration operation] wrong resource address in migration warning
> -----------------------------------------------------------------
>
>                 Key: WFLY-6504
>                 URL: https://issues.jboss.org/browse/WFLY-6504
>             Project: WildFly
>          Issue Type: Bug
>          Components: JMS
>    Affects Versions: 10.0.0.Final
>            Reporter: Jeff Mesnil
>            Assignee: Jeff Mesnil
>
> Say I take EAP 6.4 default {{standalone-full.xml}} and add a discovery group like this:
> {code:xml}
> <subsystem xmlns="urn:jboss:domain:messaging:1.4">
>     <hornetq-server>
>         ...
>         <discovery-groups>
>              <discovery-group name="my-discovery-group">
>                 <group-address>224.0.1.105</group-address>
>                 <group-port>56789</group-port>
>              </discovery-group>
>         </discovery-groups>
>         ...
>     </hornetq-server>
> </subsystem>
> {code}
> This is the only change I make to the configuration file. Then I try to migrate the {{messaging}} subsystem, expecting a migration warning that I should use the {{socket-binding}} attribute.
> The warning appears indeed:
> {code}
> [standalone at localhost:9999 /] /subsystem=messaging:migrate
> {
>     "outcome" => "success",
>     "result" => {"migration-warnings" => [
>         "WFLYMSG0084: Can not migrate attribute group-address from resource [
>     (\"subsystem\" => \"messaging-activemq\"),
>     (\"server\" => \"default\"),
>     (\"discovery-group\" => \"my-discovery-group\")
> ]. Use instead the socket-binding attribute to configure this discovery-group.",
>         "WFLYMSG0084: Can not migrate attribute group-port from resource [
>     (\"subsystem\" => \"messaging-activemq\"),
>     (\"server\" => \"default\"),
>     (\"discovery-group\" => \"my-discovery-group\")
> ]. Use instead the socket-binding attribute to configure this discovery-group."
>     ]}
> }
> {code}
> But the resource addresses in the warning are wrong. They refer to the {{messaging-activemq}} subsystem, which clearly isn't what I'm migrating _from_, it's what I'm migrating _to_.
> I understand from the code that the DMR structure of the old subsystem model is very close to the structure of the new subsystem model, which is why these warning are produced on an already translated structure, but it generates wrong warnings.
> CC [~mnovak].



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


More information about the jboss-jira mailing list