Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-8801

Distributed workmanager can only be removed in admin-only mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR13
    • 7.1.0.DR11
    • JCA
    • None
    • Hide

      Add a distributed workmanager:

      batch
      /subsystem=jca/distributed-workmanager=dwm:add(name=dwm)
      /subsystem=jca/distributed-workmanager=dwm/short-running-threads=dwm:add(queue-length=20,max-threads=20)
      run-batch
      reload
      

      Then, try to remove it:

      /subsystem=jca/distributed-workmanager=dwm:remove
      

      This fails and displays an error:

      [standalone@embedded /] /subsystem=jca/distributed-workmanager=dwm:remove
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0171: Removing services has lead to unsatisfied dependencies:
      Service jboss.thread.executor.short-running-threads.dwm was depended upon by service jboss.connector.workmanager.dwm",
          "rolled-back" => true
      }
      

      The expected outcome is that this should succeed or at least succeed and ask the user to reload the server.

      Show
      Add a distributed workmanager: batch /subsystem=jca/distributed-workmanager=dwm:add(name=dwm) /subsystem=jca/distributed-workmanager=dwm/ short -running-threads=dwm:add(queue-length=20,max-threads=20) run-batch reload Then, try to remove it: /subsystem=jca/distributed-workmanager=dwm:remove This fails and displays an error: [standalone@embedded /] /subsystem=jca/distributed-workmanager=dwm:remove { "outcome" => "failed" , "failure-description" => "WFLYCTL0171: Removing services has lead to unsatisfied dependencies: Service jboss.thread.executor. short -running-threads.dwm was depended upon by service jboss.connector.workmanager.dwm", "rolled-back" => true } The expected outcome is that this should succeed or at least succeed and ask the user to reload the server.

      See the steps to reproduce. It is not possible to remove a distributed workmanager once it has been created, except in admin-only mode.

      It is expected that if a command is valid - it should pass in both normal and admin-only mode. The exception being, that if the resource being removed cannot be removed while the server is running, the command should still pass, but should require server reload. Note that from user-experience standpoint, as few operations as possible should require server reload.

            smaestri@redhat.com Stefano Maestri
            rjanik@redhat.com Richard Janik
            Richard Janik Richard Janik
            Richard Janik Richard Janik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: