[
https://issues.jboss.org/browse/WFCORE-765?page=com.atlassian.jira.plugin...
]
Brian Stansberry commented on WFCORE-765:
-----------------------------------------
This happens because of the use of Ctrl-C.
Ctrl-C signals all the processes launched as a result of running domain.sh, not just the
initial VM. So the servers have received the signal and have begun shutting down
independent of the Host Controller telling them to do so. Services are being removed. The
HC then, as part of its own shutdown, sends a command to the servers telling them to
suspend. The handler for that command on the server is logging this exception because
it's not finding the service container in the state it expects.
Fix is just to change the handler to ignore the missing services and not attempt a
graceful suspend if they are not present. The only reason they wouldn't be present is
because a shutdown is already underway..
Note that graceful shutdown doesn't work when you use Ctrl-C.
Shutdown error in domain mode
-----------------------------
Key: WFCORE-765
URL:
https://issues.jboss.org/browse/WFCORE-765
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Affects Versions: 1.0.0.CR6, 2.0.0.Alpha4
Environment: Ubuntu 14.04 LTS, Oracle JDK 1.8.0_45
Reporter: Harald Wellmann
Assignee: Brian Stansberry
Fix For: 1.0.0.CR7, 2.0.0.Alpha5
h3. Scenario
* Download and unpack wildfly-dist-9.0.0.CR2.zip.
* Run bin/domain.sh and wait for servers to start.
* Hit Ctrl-C.
h3. Problem
The following error message appears for each configured server:
{noformat}
[Server:server-one] 13:10:34,966 ERROR [org.jboss.as.controller.management-operation]
(ServerService Thread Pool -- 30) WFLYCTL0190: Step handler
org.jboss.as.server.operations.ServerDomainProcessShutdownHandler$1@25f7734b for operation
{"operation" => "shutdown","address" =>
[],"operation-id" => -1,"timeout" => -1} at address [] failed
handling operation rollback -- org.jboss.msc.service.ServiceNotFoundException: Service
service jboss.server.graceful-shutdown-service not found:
org.jboss.msc.service.ServiceNotFoundException: Service service
jboss.server.graceful-shutdown-service not found
[Server:server-one] at
org.jboss.msc.service.ServiceContainerImpl.getRequiredService(ServiceContainerImpl.java:669)
[Server:server-one] at
org.jboss.as.controller.OperationContextImpl$OperationContextServiceRegistry.getRequiredService(OperationContextImpl.java:2013)
[Server:server-one] at
org.jboss.as.server.operations.ServerDomainProcessShutdownHandler$1$1.handleResult(ServerDomainProcessShutdownHandler.java:102)
[Server:server-one] at
org.jboss.as.controller.AbstractOperationContext$Step.invokeResultHandler(AbstractOperationContext.java:1401)
[Server:server-one] at
org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1381)
[Server:server-one] at
org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1332)
[Server:server-one] at
org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1292)
[Server:server-one] at
org.jboss.as.controller.AbstractOperationContext$Step.access$300(AbstractOperationContext.java:1180)
[Server:server-one] at
org.jboss.as.controller.AbstractOperationContext.finishStep(AbstractOperationContext.java:937)
[Server:server-one] at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:885)
[Server:server-one] at
org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:601)
[Server:server-one] at
org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:354)
[Server:server-one] at
org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:330)
[Server:server-one] at
org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1183)
[Server:server-one] at
org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:362)
[Server:server-one] at
org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:218)
[Server:server-one] at
org.jboss.as.controller.remote.TransactionalProtocolOperationHandler.internalExecute(TransactionalProtocolOperationHandler.java:234)
[Server:server-one] at
org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler.doExecute(TransactionalProtocolOperationHandler.java:174)
[Server:server-one] at
org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$1.run(TransactionalProtocolOperationHandler.java:137)
[Server:server-one] at
org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$1.run(TransactionalProtocolOperationHandler.java:133)
[Server:server-one] at java.security.AccessController.doPrivileged(Native Method)
[Server:server-one] at javax.security.auth.Subject.doAs(Subject.java:360)
[Server:server-one] at
org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:81)
[Server:server-one] at
org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2$1.run(TransactionalProtocolOperationHandler.java:153)
[Server:server-one] at
org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2$1.run(TransactionalProtocolOperationHandler.java:149)
[Server:server-one] at java.security.AccessController.doPrivileged(Native Method)
[Server:server-one] at
org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2.execute(TransactionalProtocolOperationHandler.java:149)
[Server:server-one] at
org.jboss.as.protocol.mgmt.AbstractMessageHandler$2$1.doExecute(AbstractMessageHandler.java:298)
[Server:server-one] at
org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:518)
[Server:server-one] at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[Server:server-one] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[Server:server-one] at java.lang.Thread.run(Thread.java:745)
[Server:server-one] at org.jboss.threads.JBossThread.run(JBossThread.java:320)
{noformat}
Tried on two different machines, both with Java 7 and Java 8. Also occurs with 9.0.0.CR1.
Does not occur with 8.2.0.Final.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)