[jboss-jira] [JBoss JIRA] (AS7-6387) Improper error handling when attempting to remove a server-config with a running server
Osamu Nagano (JIRA)
jira-events at lists.jboss.org
Mon Jan 28 22:11:47 EST 2013
[ https://issues.jboss.org/browse/AS7-6387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750907#comment-12750907 ]
Osamu Nagano commented on AS7-6387:
-----------------------------------
HOW TO REPRODUCE:
This is easy to reproduce using the default domain.xml/host.xml configuration of 7.1.3.Final (EAP 6.0.1).
1. Edit the host.xml so that all servers 'auto-start' to be 'false'.
2. Execute domain.sh. Only the process controller and the domain controller are started.
3. In the jboss-cli.sh, try to remove a server-config then you'll get the error.
[domain at localhost:9999 /] /host=master/server-config=server-three:remove
{
"outcome" => "failed",
"result" => {
"outcome" => "failed",
"failure-description" => "[core-service, path, server-config, system-property, jvm, interface]",
"rolled-back" => true
},
"rolled-back" => true
}
4. If there are any running servers, the remove command succeeds as expected.
[domain at localhost:9999 /] /host=master/server-config=server-one:start
{
"outcome" => "success",
"result" => "STARTING"
}
[domain at localhost:9999 /] /host=master/server-config=server-three:remove
{
"outcome" => "success",
"result" => {"outcome" => "success"}
}
> Improper error handling when attempting to remove a server-config with a running server
> ---------------------------------------------------------------------------------------
>
> Key: AS7-6387
> URL: https://issues.jboss.org/browse/AS7-6387
> Project: Application Server 7
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 7.1.2.Final (EAP), 7.1.3.Final (EAP)
> Reporter: Brian Stansberry
> Assignee: Brian Stansberry
> Fix For: 7.2.0.Alpha1
>
>
> Trying to remove the config for server-one while it's still running produces an uninformative failure:
> [domain at localhost:9999 /] /host=master/server-config=server-one:remove
> {
> "outcome" => "failed",
> "result" => undefined,
> "rolled-back" => true,
> "server-groups" => undefined
> }
> An EAP 6 user reported a similar problem but with a different response:
> [domain at localhost:9999 /] /host=xyz/server-config=as1:remove
> {
> "outcome" => "success",
> "result" => {
> "outcome" => "failed",
> "failure-description" => "[core-service, path, server-config, system-property, jvm, interface]",
> "rolled-back" => true
> },
> "failure-description" => undefined
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list