[jboss-jira] [JBoss JIRA] (WFCORE-876) Reload or Shutdown inside IF statement is performed before the if/else block batch is executed
Joe Wertz (JIRA)
issues at jboss.org
Wed Aug 12 03:53:03 EDT 2015
Joe Wertz created WFCORE-876:
--------------------------------
Summary: 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.3.15#6346)
More information about the jboss-jira
mailing list