db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1694) derbynet/testProperties.java hangs
Date Wed, 30 Aug 2006 22:55:22 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1694?page=comments#action_12431739 ] 
            
Daniel John Debrunner commented on DERBY-1694:
----------------------------------------------

Just realized I didn't put all the info I learnt here.

Increasing the wait time for booting the server makes the test pass.

The hang seems to be due to the cleanup code when one of the waits for  server to start fails.
The code then tries to shutdown all possible servers it started, the code is around line 322
with this comment

			// If something went wrong,
			// make sure all these servers are shutdown

Not sure what is causing the hang though.

> derbynet/testProperties.java hangs
> ----------------------------------
>
>                 Key: DERBY-1694
>                 URL: http://issues.apache.org/jira/browse/DERBY-1694
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure
>    Affects Versions: 10.3.0.0
>         Environment: Windows XP  IBM 142 JRE
>            Reporter: Daniel John Debrunner
>             Fix For: 10.2.1.0
>
>         Attachments: derby1694diff.txt
>
>
> The testProperties.execCmd() is used to fork a JVM and not handle its
> streams. This will cause problems, as indicated by the javadoc for Process.
> "The parent process uses these streams to feed input to and get output
> from the subprocess. Because some native platforms only provide limited
> buffer size for standard input and output streams, failure to promptly
> write the input stream or read the output stream of the subprocess may
> cause the subprocess to block, and even deadlock"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message