Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 96772 invoked from network); 4 Sep 2009 00:28:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Sep 2009 00:28:22 -0000 Received: (qmail 46153 invoked by uid 500); 4 Sep 2009 00:28:22 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 46129 invoked by uid 500); 4 Sep 2009 00:28:22 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 46110 invoked by uid 99); 4 Sep 2009 00:28:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2009 00:28:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2009 00:28:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4A14F234C1EA for ; Thu, 3 Sep 2009 17:27:58 -0700 (PDT) Message-ID: <1100681956.1252024078302.JavaMail.jira@brutus> Date: Thu, 3 Sep 2009 17:27:58 -0700 (PDT) From: "Myrna van Lunteren (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4347) Provide a property to increase network server start timeout for JUnit tests In-Reply-To: <809322471.1250005694793.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Myrna van Lunteren updated DERBY-4347: -------------------------------------- Issue & fix info: [Patch Available] > Provide a property to increase network server start timeout for JUnit tests > ----------------------------------------------------------------------------- > > Key: DERBY-4347 > URL: https://issues.apache.org/jira/browse/DERBY-4347 > Project: Derby > Issue Type: Improvement > Components: Test > Affects Versions: 10.5.3.0, 10.6.0.0 > Reporter: Kathey Marsden > Priority: Minor > Attachments: DERBY-4347.diff > > > Sometimes when running JUnit tests with jvm options that are known to slow things down significantly network server start timeouts can occur e.g. > SecureServerTest( Opened = false, Authenticated= false, CustomDerbyProperties= null, WildCardHost= null )junit.framework.AssertionFailedError: Timed out waiting for network server to start:Spawned SpawnedNetworkServer exitCode=143 > at org.apache.derbyTesting.junit.NetworkServerTestSetup.setUp(NetworkServerTestSetup.java:203) > at junit.extensions.TestSetup$1.protect(TestSetup.java:18) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22) > at junit.extensions.TestSetup$1.protect(TestSetup.java:19) > at junit.extensions.TestSetup.run(TestSetup.java:23) > The current wait time is 40 seconds and is set in org.apache.derbyTesting.junit.NetworkServerTestSetup > > /** Setting maximum wait time to 40 seconds. On some platforms > * it may take this long to start the server. Increasing the wait > * time should not adversely affect those > * systems with fast port turnaround as the actual code loops for > * SLEEP_TIME intervals, so should never see WAIT_TIME. > */ > private static final long WAIT_TIME = 40000; > > It would be nice to have system property (maybe derby.tests.networkServerStartTimeout=) to allow this to be configurable in environments where we expect the start to take longer. > I am not sure if there are other timeouts in the tests for replication etc or if they all use this same setting. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.