Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-876

Reload or Shutdown inside IF statement is performed before the if/else block batch is executed

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0.Beta1
    • Fix Version/s: 2.0.0.CR2
    • Component/s: CLI
    • Labels:
      None

      Description

      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.

      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
      

      This command will actually leave the server in a reload-required state. The shutdown, or reload, will occur before the write-attribute is executed.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  aloubyansky Oleksiy Lubyanskyy
                  Reporter:
                  gonthim Joe Wertz
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: