Bug 1082461

Summary: Appclient hangs after application is stopped
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: Application ClientAssignee: Brian Stansberry <brian.stansberry>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: urgent Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.3.0CC: brian.stansberry, kkhan, nobody, smumford
Target Milestone: ER2   
Target Release: EAP 6.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
In previous versions of the product, the threads used for mounting deployment content were not marked as daemon threads. As a result, when an appclient container was shut down, the process would not terminate because the deployment mounting thread would not terminate. In this release, the threads used for mounting deployment content are marked as daemon threads and the appclient container will shut down properly.
Story Points: ---
Clone Of:
: 1094279 (view as bug list) Environment:
Last Closed: 2014-06-28 15:37:32 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:
Bug Depends On:    
Bug Blocks: 1051640, 1094279    
Attachments:
Description Flags
Appclient testing archive
none
jstack.txt none

Description Petr Kremensky 2014-03-31 06:44:48 UTC
Created attachment 880580 [details]
Appclient testing archive

Description of problem:
Appclient hangs after server stop

Version-Release number of selected component (if applicable):
EAP 6.3.0.DR6

How reproducible:
Always

Steps to Reproduce:
1. start standalone server 
2. deploy calc.ear (see attachment)
3. run following command: 
./appclient.sh /home/pkremens/devel/eap-tests-scripts/scripts-testing/target/test-classes/appclient/calc.ear#jboss-as-ejb-remote-client-7.1.1.CR1.jar
4. run the command again
./appclient.sh /home/pkremens/devel/eap-tests-scripts/scripts-testing/target/test-classes/appclient/calc.ear#jboss-as-ejb-remote-client-7.1.1.CR1.jar

Actual results:
program hangs with last line stating JBoss EAP stopped

Expected results:
program terminates and returns to command line

Additional info:
See BZ1012968

Comment 1 Petr Sakař 2014-03-31 12:33:04 UTC
I'm not sure if it is the same problem, but I see hanging server process on windows. I'm attaching stack, I can provide heap dump as well.

Comment 2 Petr Sakař 2014-03-31 12:33:45 UTC
Created attachment 880732 [details]
jstack.txt

Comment 3 Brian Stansberry 2014-04-02 17:30:46 UTC
Fix is likely this:

https://github.com/wildfly/wildfly/commit/c18323fc

Comment 5 Petr Kremensky 2014-04-23 13:23:20 UTC
Verified on EAP 6.3.0.ER2

Comment 6 Scott Mumford 2014-05-14 00:20:38 UTC
Brian, could you please provide a draft release note in the Doc Text field above? There's not enough information contained in this ticket for me to ascertain what caused the hang and how it was resolve.

Thanks.