[jboss-jira] [JBoss JIRA] (AS7-2219) Thread factory can be removed, even when it is assigned to a pool.
Brian Stansberry (Resolved) (JIRA)
jira-events at lists.jboss.org
Fri Nov 4 08:25:46 EDT 2011
[ https://issues.jboss.org/browse/AS7-2219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry resolved AS7-2219.
-----------------------------------
Resolution: Done
Fixed. This was a general problem whereby the operation handling code would not detect situations where operations removed services and thus generated missing dependencies.
Now:
[standalone at localhost:9999 /] cd subsystem=threads
[standalone at localhost:9999 subsystem=threads] ./queueless-thread-pool=test:read-resource
{
"outcome" => "success",
"result" => {
"blocking" => undefined,
"handoff-executor" => undefined,
"keepalive-time" => undefined,
"max-threads" => {
"count" => big decimal 2,
"per-cpu" => big decimal 1
},
"name" => "test",
"properties" => undefined,
"thread-factory" => "test"
}
}
[standalone at localhost:9999 subsystem=threads] ./thread-factory=test:remove
{
"outcome" => "failed",
"failure-description" => "Removing services has lead to unsatisfied dependencies:
Service jboss.thread.factory.test was depended upon by service jboss.thread.executor.test",
"rolled-back" => true
}
[standalone at localhost:9999 subsystem=threads] ./thread-factory=test:read-resource
{
"outcome" => "success",
"result" => {
"group-name" => undefined,
"name" => "test",
"priority" => 1,
"properties" => undefined,
"thread-name-pattern" => undefined
}
}
[standalone at localhost:9999 subsystem=threads] ./queueless-thread-pool=test:read-resource
{
"outcome" => "success",
"result" => {
"blocking" => undefined,
"handoff-executor" => undefined,
"keepalive-time" => undefined,
"max-threads" => {
"count" => big decimal 2,
"per-cpu" => big decimal 1
},
"name" => "test",
"properties" => undefined,
"thread-factory" => "test"
}
}
> Thread factory can be removed, even when it is assigned to a pool.
> ------------------------------------------------------------------
>
> Key: AS7-2219
> URL: https://issues.jboss.org/browse/AS7-2219
> Project: Application Server 7
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 7.1.0.Alpha1
> Reporter: Stan Silvert
> Assignee: Brian Stansberry
> Fix For: 7.1.0.Beta1
>
>
> You should not be able to remove a thread factory if it is currently assigned to a thread pool.
> {code}
> [standalone at 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 at localhost:9999 subsystem=threads] cd thread-factory=mine
> [standalone at localhost:9999 thread-factory=mine] :remove
> {
> "outcome" => "success",
> "response-headers" => {"process-state" => "reload-required"}
> }
> [standalone at localhost:9999 thread-factory=mine] cd ..
> [standalone at 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 at localhost:9999 subsystem=threads]
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list