Bug 978332

Summary: DeployableContainer kills the managed server instead of regular shutdown in stop() on Windows
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Ivo Studensky <istudens>
Component: TestsuiteAssignee: Ivo Studensky <istudens>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 6.1.0CC: cdewolf, rjanik, rrajasek
Target Milestone: ER4   
Target Release: EAP 6.1.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-16 20:24:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ivo Studensky 2013-06-26 11:33:15 UTC
Description of problem:
Backport of WFLY-126 to the EAP 6.1.x branch.

Upstream's description: 
This might be due to historical reasons for the TS to run faster, but this messes up clustering tests since shutdown is part of the test.

The problem is that Managed*DeployableContainer kills the managed server instead of regular shutdown in stop() on Windows. ARQ's stop is supposed to shutdown the server 'nicely', for abrupt termination there is jvmKill().

This was probably implemented like this incorrectly assuming that on windows, the process is sent SIGTERM like on *NIX-based OSes but there is no such thing on windows and the process is terminated immediately.

This shows up only in clustered tests, compared to other tests which dont rely on the shutdown sequence to be completed, but clustering testsuite relies on shutdown to disconnect the channel and leave the cluster without FD having to kick in.

Comment 1 Ivo Studensky 2013-06-26 12:01:36 UTC
Created a PR for this:

https://github.com/jbossas/jboss-eap/pull/202

Comment 2 Rostislav Svoboda 2013-06-27 12:00:12 UTC
TS improvement is welcome.

Comment 3 Richard Janík 2013-08-12 12:16:44 UTC
I do indeed see improvements in the clustering testsuite on Windows.

Comment 5 JBoss JIRA Server 2013-10-15 17:20:04 UTC
Radoslav Husar <rhusar> updated the status of jira WFLY-126 to Closed