[jboss-jira] [JBoss JIRA] (AS7-4488) Subsequent stop start of a server leads to errors
Michael Voegele (JIRA)
jira-events at lists.jboss.org
Thu Apr 12 10:53:50 EDT 2012
Michael Voegele created AS7-4488:
------------------------------------
Summary: Subsequent stop start of a server leads to errors
Key: AS7-4488
URL: https://issues.jboss.org/browse/AS7-4488
Project: Application Server 7
Issue Type: Bug
Components: Domain Management
Affects Versions: 7.1.1.Final
Reporter: Michael Voegele
Assignee: Brian Stansberry
Please have a look at following log (after all the second part with *operation start* and *result success stopping*):
{code:xml}
2012-04-12 11:24:10,450 [main] DEBUG com.*tech.jet.jboss.dmr.DmrClient - About to execute following operation:
{
"operation" : "stop",
"address" : [
{
"host" : "master"
},
{
"server-config" : "server-1"
}
]
}
2012-04-12 11:24:10,469 [Remoting "management-client" write-1] DEBUG org.xnio.nio - Started channel thread 'Remoting "management-client" write-1', selector sun.nio.ch.WindowsSelectorImpl at 8bab67
2012-04-12 11:24:10,490 [Remoting "management-client" read-1] DEBUG org.xnio.nio - Started channel thread 'Remoting "management-client" read-1', selector sun.nio.ch.WindowsSelectorImpl at 1f23dc
2012-04-12 11:24:10,849 [main] DEBUG com.*tech.jet.jboss.dmr.DmrClient - Operation was executed, result is:
{
"outcome" : "success",
"result" : "STOPPING"
}
2012-04-12 11:24:10,849 [main] DEBUG com.*tech.jet.jboss.dmr.tasks.DmrGenericJsonTask - Successfully executed DmrGenericJsonTask.
2012-04-12 11:24:10,855 [main] DEBUG com.*tech.jet.jboss.dmr.template.provider.TemplateProvider - About to parse template 'test-template-domain_server-start'.
2012-04-12 11:24:10,879 [main] DEBUG com.*tech.jet.jboss.dmr.template.provider.TemplateProvider - Successfully parsed template 'test-template-domain_server-start'.
2012-04-12 11:24:10,880 [main] DEBUG com.*tech.jet.jboss.dmr.tasks.DmrGenericJsonTask - About to execute DmrGenericJsonTask.
2012-04-12 11:24:10,880 [main] DEBUG com.*tech.jet.jboss.dmr.DmrClient - About to execute following operation:
{
"operation" : "start",
"address" : [
{
"host" : "master"
},
{
"server-config" : "server-1"
}
]
}
2012-04-12 11:24:10,902 [Remoting "management-client" write-1] DEBUG org.xnio.nio - Started channel thread 'Remoting "management-client" write-1', selector sun.nio.ch.WindowsSelectorImpl at 1674a1b
2012-04-12 11:24:10,944 [Remoting "management-client" read-1] DEBUG org.xnio.nio - Started channel thread 'Remoting "management-client" read-1', selector sun.nio.ch.WindowsSelectorImpl at 3243bf
2012-04-12 11:24:11,201 [main] DEBUG com.*tech.jet.jboss.dmr.DmrClient - Operation was executed, result is:
{
"outcome" : "success",
"result" : "STOPPING"
}
2012-04-12 11:24:34,952 [main] DEBUG com.*tech.jet.jboss.dmr.tasks.DmrGenericJsonTask - Successfully executed DmrGenericJsonTask.
2012-04-12 11:24:51,440 [main] DEBUG com.*tech.jet.jboss.dmr.template.provider.TemplateProvider - About to load template 'test-template-domain_server-restart' with filename 'test/templates/domain/server-restart.xml'.
2012-04-12 11:24:51,441 [main] DEBUG com.*tech.jet.jboss.dmr.template.provider.TemplateProvider - About to parse template 'test-template-domain_server-restart'.
2012-04-12 11:24:51,472 [main] DEBUG com.*tech.jet.jboss.dmr.template.provider.TemplateProvider - Successfully parsed template 'test-template-domain_server-restart'.
2012-04-12 11:24:51,472 [main] DEBUG com.*tech.jet.jboss.dmr.tasks.DmrGenericJsonTask - About to execute DmrGenericJsonTask.
2012-04-12 11:24:51,472 [main] DEBUG com.*tech.jet.jboss.dmr.DmrClient - About to execute following operation:
{
"operation" : "restart",
"address" : [
{
"host" : "master"
},
{
"server-config" : "server-1"
}
]
}
2012-04-12 11:24:51,488 [Remoting "management-client" read-1] DEBUG org.xnio.nio - Started channel thread 'Remoting "management-client" read-1', selector sun.nio.ch.WindowsSelectorImpl at 138d8fa
2012-04-12 11:24:51,502 [Remoting "management-client" write-1] DEBUG org.xnio.nio - Started channel thread 'Remoting "management-client" write-1', selector sun.nio.ch.WindowsSelectorImpl at 11499ff
2012-04-12 11:24:51,768 [main] DEBUG com.*tech.jet.jboss.dmr.DmrClient - Operation was executed, result is:
{
"outcome" : "failed",
"failure-description" : "JBAS010946: Cannot restart server server-1 as it is not currently started; it is STOPPING",
"rolled-back" : true
}
{code}
I understand that these operations are executed asynchronously and that the use case is rare, but still it should work.
Also, if again configuration is changed via dmr having impact on the server being started/stopped/restarted, this leads to subsequent errors.
In an automated environment, configuration is changed in a row and also servers need to be stopped/started/restarted in this same row. Either an error should be thrown when trying to start a server which is being stopped or maybe, for configuration purposes, a boolean option synchronous could be provided in the handler as param.
Thanks!
--
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