[jboss-jira] [JBoss JIRA] (AS7-6387) Improper error handling when attempting to remove a server-config with a running server

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Sun Feb 3 21:49:51 EST 2013


    [ https://issues.jboss.org/browse/AS7-6387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12751952#comment-12751952 ] 

RH Bugzilla Integration commented on AS7-6387:
----------------------------------------------

Osamu Nagano <onagano at redhat.com> made a comment on [bug 907281|https://bugzilla.redhat.com/show_bug.cgi?id=907281]

Description of problem:
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
}


Steps to Reproduce:
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: Emanuel Muckenhuber
>             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