[jboss-jira] [JBoss JIRA] (WFCORE-876) Reload or Shutdown inside IF statement is performed before the if/else block batch is executed

Brian Stansberry (JIRA) issues at jboss.org
Wed Sep 16 12:44:00 EDT 2015


     [ https://issues.jboss.org/browse/WFCORE-876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated WFCORE-876:
------------------------------------
    Forum Reference: http://lists.jboss.org/pipermail/wildfly-dev/2015-September/004404.html


> Reload or Shutdown inside IF statement is performed before the if/else block batch is executed
> ----------------------------------------------------------------------------------------------
>
>                 Key: WFCORE-876
>                 URL: https://issues.jboss.org/browse/WFCORE-876
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 2.0.0.Beta1
>            Reporter: Joe Wertz
>            Assignee: Alexey Loubyansky
>
> Executing a reload or shutdown inside an if/else block results in the reload or restart occurring before the other commands in the batch are executed.
> {code}
> if (outcome == success) of /subsystem=logging/logger=org.jboss.as.cli:read-resource()
>    /subsystem=logging:write-attribute(name=use-deployment-logging-config
>    shutdown --restart=true
> end-if
> {code}
> This command will actually leave the server in a reload-required state. The shutdown, or reload, will occur before the write-attribute is executed.



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


More information about the jboss-jira mailing list