You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Kathey Marsden (JIRA)" <ji...@apache.org> on 2009/08/11 17:48:14 UTC
[jira] Created: (DERBY-4347) Provide a property to increase network
server start timeout for JUnitTests
Provide a property to increase network server start timeout for JUnitTests
----------------------------------------------------------------------------
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
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=<ms>) 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.
[jira] Commented: (DERBY-4347) Provide a property to increase
network server start timeout for JUnit tests
Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-4347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744386#action_12744386 ]
Knut Anders Hatlen commented on DERBY-4347:
-------------------------------------------
We could also just increase the default wait time. It shouldn't have any negative effects except that it takes longer for the test to fail if the server doesn't start, but that's hardly worth optimizing for.
Minor nit: If we add the system property, I think it would be better to specify the number of seconds to wait instead of milliseconds, as I don't see the need for ms resolution. It would also be more in line with the other (non-testing) timeout properties like derby.locks.*timeout.
> 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
>
> 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=<ms>) 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.
[jira] Commented: (DERBY-4347) Provide a property to increase
network server start timeout for JUnit tests
Posted by "Kathey Marsden (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-4347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753273#action_12753273 ]
Kathey Marsden commented on DERBY-4347:
---------------------------------------
Hi Myrna, I think it would be clearer for the test to throw an error if it cannot parse the timeout rather than just print a message. Sometimes with automated test runs the output is not immediately apparent as we found with the encryption test that was printing for a while that it was not running but did not fail.
> 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=<ms>) 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.
[jira] Commented: (DERBY-4347) Provide a property to increase
network server start timeout for JUnit tests
Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-4347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12748577#action_12748577 ]
Myrna van Lunteren commented on DERBY-4347:
-------------------------------------------
Although I'm wary of adding configurable properties (because the old test harness had many, most of them badly documented and/or not working properly) this one has long been on my wish list.
For instance, when running platform tests, for which I only have slower machines available. Or, like Kathey says, for doing experiments with jvm settings.
You can make a specialized build with the slower setting, but it gets old, making the same change repeatedly.
I don't think making that change permanently for these one-off situations is necessary.
There are a few tests which expect the server to fail, and those would be sitting around even longer (although it's probably only 1 or 2 tests, so on a complete testrun it probably doesn't matter so much). Also, I'd worry that we hide server startup performance creep if we'd increase the default (although there's probably/hopefully a performance tests for that somewhere).
I agree on Knut's point re the seconds vs. milliseconds.
> 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
>
> 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=<ms>) 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.
[jira] Updated: (DERBY-4347) Provide a property to increase network
server start timeout for JUnit tests
Posted by "Myrna van Lunteren (JIRA)" <ji...@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: (was: [Patch Available])
Assignee: Myrna van Lunteren
> 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
> Assignee: Myrna van Lunteren
> Priority: Minor
> Attachments: DERBY-4347.diff, DERBY-4347.diffv2
>
>
> 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=<ms>) 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.
[jira] Updated: (DERBY-4347) Provide a property to increase network
server start timeout for JUnit tests
Posted by "Myrna van Lunteren (JIRA)" <ji...@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=<ms>) 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.
[jira] Updated: (DERBY-4347) Provide a property to increase network
server start timeout for JUnit tests
Posted by "Kathey Marsden (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-4347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kathey Marsden updated DERBY-4347:
----------------------------------
Summary: Provide a property to increase network server start timeout for JUnit tests (was: Provide a property to increase network server start timeout for JUnitTests)
> 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
>
> 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=<ms>) 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.
[jira] Updated: (DERBY-4347) Provide a property to increase network
server start timeout for JUnit tests
Posted by "Myrna van Lunteren (JIRA)" <ji...@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:
--------------------------------------
Attachment: DERBY-4347.diffv2
Attaching a new patch which attempts to address Kathey's comments.
The getWaitTime() method has been restructured a bit, and now will cause a failure when an invalid value is passed in for derby.tests.networkServerStartTimeout.
There were no problems when I ran suites.All with this patch.
If there are no comments, I'll likely commit this in the next few days.
> 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, DERBY-4347.diffv2
>
>
> 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=<ms>) 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.
[jira] Commented: (DERBY-4347) Provide a property to increase
network server start timeout for JUnit tests
Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-4347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753259#action_12753259 ]
Myrna van Lunteren commented on DERBY-4347:
-------------------------------------------
Forgot to report back - I got 1 "new" test failure on my machine (ignoring engine.ErrorStreamTest.testDefault which failed on windows although mamta checked in a fix yesterday, my build must be from before) when running suites.All (but not when running the test by itself);
ttestSetPortPriority(org.apache.derbyTesting.functionTests.tests.derbynet.ServerPropertiesTest)junit.framework.AssertionFailedError: Can not ping server specified with -p
But I reverted my change, ran the suite again, and got the same error, so I don't think it's related.
> 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=<ms>) 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.
[jira] Updated: (DERBY-4347) Provide a property to increase network
server start timeout for JUnit tests
Posted by "Myrna van Lunteren (JIRA)" <ji...@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:
--------------------------------------
Attachment: DERBY-4347.diff
Attaching a first attempt at implementing this.
I'm running suites.All now. Would appreciate review.
This patch would enable one to overwrite the default wait time passing on the number of seconds using the property derby.tests.networkServerStartTimeout.
> 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=<ms>) 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.
[jira] Resolved: (DERBY-4347) Provide a property to increase
network server start timeout for JUnit tests
Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-4347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Myrna van Lunteren resolved DERBY-4347.
---------------------------------------
Resolution: Fixed
Fix Version/s: 10.6.0.0
10.5.3.1
backported 814815 from trunk to 10.5 with revision 814906.
I also added a section to http://wiki.apache.org/db-derby/DerbyJUnitTesting
> 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
> Assignee: Myrna van Lunteren
> Priority: Minor
> Fix For: 10.5.3.1, 10.6.0.0
>
> Attachments: DERBY-4347.diff, DERBY-4347.diffv2
>
>
> 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=<ms>) 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.
[jira] Commented: (DERBY-4347) Provide a property to increase
network server start timeout for JUnit tests
Posted by "Kathey Marsden (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-4347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12749593#action_12749593 ]
Kathey Marsden commented on DERBY-4347:
---------------------------------------
I seem to recall concern that increasing the default wait time might mask actual network server start performance regressions. Seconds instead of milliseconds sounds fine.
> 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
>
> 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=<ms>) 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.
[jira] Commented: (DERBY-4347) Provide a property to increase
network server start timeout for JUnit tests
Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-4347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755162#action_12755162 ]
Myrna van Lunteren commented on DERBY-4347:
-------------------------------------------
I've committed the v2 patch to trunk with revision 814815.
I'll work on backporting this to 10.5 and on updating appropriate areas in the wiki.
> 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, DERBY-4347.diffv2
>
>
> 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=<ms>) 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.