Bug 1092665
| Summary: | RespawnTestCase occasionally stuck on Windows | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Petr Kremensky <pkremens> | ||||
| Component: | Testsuite | Assignee: | Jan Martiska <jmartisk> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Pavel Jelinek <pjelinek> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.3.0 | CC: | cdewolf, jmartisk, rhatlapa | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-05-28 09:38:12 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: | |||||||
| Attachments: |
|
||||||
|
Description
Petr Kremensky
2014-04-29 17:03:58 UTC
Created attachment 890867 [details]
Thread dump
It breaks AS testsuite when it happens. My thoughts: Maybe the OS' native buffer of a jps process' stdout/stderr overflows so the subprocess cannot do any more output and blocks. But there is nothing written into stderr, and stdout is very short, I don't see why it would fill the buffer. Furthermore, the jps process seems to be already finished when the deadlock happens. So it kinda looks like for some reason, Windows doesn't pass the end-of-stream character in some cases even though the subprocess is finished. Wonder where it gets lost. Switching from Runtime.exec to a ProcessBuilder and redirecting the process' output to a file (and reading the output from that file afterwards) seems to resolve it for me. It is quite nasty though. .. that uses java 7 api :( Will try to find something else. It seems to be an issue with Samba shares and happens when the testsuite is run against a network-shared JDK distribution. The workaround is to use a local JDK distro, then it should work. Jan Martiska <jmartisk> updated the status of jira JBQA-10007 to Closed |