Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2219

Thread factory can be removed, even when it is assigned to a pool.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.Beta1
    • 7.1.0.Alpha1
    • Domain Management
    • None

    Description

      You should not be able to remove a thread factory if it is currently assigned to a thread pool.

      [standalone@localhost:9999 subsystem=threads] :read-resource(recursive=true)
      {
          "outcome" => "success",
          "result" => {
              "bounded-queue-thread-pool" => undefined,
              "scheduled-thread-pool" => undefined,
              "unbounded-queue-thread-pool" => undefined,
              "queueless-thread-pool" => {"queueless" => {
                  "blocking" => false,
                  "handoff-executor" => undefined,
                  "keepalive-time" => undefined,
                  "max-threads" => {
                      "count" => 2,
                      "per-cpu" => 1
                  },
                  "name" => "queueless",
                  "properties" => undefined,
                  "thread-factory" => "mine"
              }},
              "thread-factory" => {"mine" => {
                  "group-name" => undefined,
                  "name" => "mine",
                  "priority" => "1",
                  "properties" => undefined,
                  "thread-name-pattern" => undefined
              }}
          },
          "response-headers" => {"process-state" => "reload-required"}
      }
      
      [standalone@localhost:9999 subsystem=threads] cd thread-factory=mine
      [standalone@localhost:9999 thread-factory=mine] :remove
      {
          "outcome" => "success",
          "response-headers" => {"process-state" => "reload-required"}
      }
      [standalone@localhost:9999 thread-factory=mine] cd ..
      [standalone@localhost:9999 subsystem=threads] :read-resource(recursive=true)
      {
          "outcome" => "success",
          "result" => {
              "bounded-queue-thread-pool" => undefined,
              "scheduled-thread-pool" => undefined,
              "thread-factory" => undefined,
              "unbounded-queue-thread-pool" => undefined,
              "queueless-thread-pool" => {"queueless" => {
                  "blocking" => false,
                  "handoff-executor" => undefined,
                  "keepalive-time" => undefined,
                  "max-threads" => {
                      "count" => 2,
                      "per-cpu" => 1
                  },
                  "name" => "queueless",
                  "properties" => undefined,
                  "thread-factory" => "mine"
              }}
          },
          "response-headers" => {"process-state" => "reload-required"}
      }
      [standalone@localhost:9999 subsystem=threads]
      

      Attachments

        Issue Links

          Activity

            People

              ssilvert@redhat.com Stan Silvert
              ssilvert@redhat.com Stan Silvert
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: