db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Matrigali (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2616) intermittent network startup related errors in running junit nightly test suite
Date Sat, 05 May 2007 18:05:15 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mike Matrigali updated DERBY-2616:
----------------------------------

    Affects Version/s: 10.3.0.0

Here are test failures I believe are related to not enough time waiting for network server
to start:

1) DerbyNetNewServer(org.apache.derbyTesting.functionTests.tests.derbynet.NetHar
nessJavaTest)junit.framework.ComparisonFailure: Output at line 2 expected:<Testi
ng null PrintWriter> but was:<Server shutdown failed: DRDA_NoIO.S:Could not conn
ect to Derby Network Server on host 127.0.0.1, port 1527.>
    at org.apache.derbyTesting.functionTests.util.CanonTestCase.compareCanon(Can
onTestCase.java:100)
    at org.apache.derbyTesting.functionTests.util.HarnessJavaTest.runTest(Harnes
sJavaTest.java:90)
    at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:88)
    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)
    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)
2) testclientij(org.apache.derbyTesting.functionTests.tests.derbynet.NetIjTest)j
unit.framework.AssertionFailedError: Timed out waiting for network server to sta
rt
    at org.apache.derbyTesting.junit.NetworkServerTestSetup.waitForServerStart(N
etworkServerTestSetup.java:281)
    at org.apache.derbyTesting.junit.NetworkServerTestSetup.setUp(NetworkServerT
estSetup.java:116)
    at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
    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)
3) testNetworkServerSecurityMechanism(org.apache.derbyTesting.functionTests.test
s.derbynet.NSSecurityMechanismTest)junit.framework.AssertionFailedError: Timed o
ut waiting for network server to start
    at org.apache.derbyTesting.junit.NetworkServerTestSetup.waitForServerStart(N
etworkServerTestSetup.java:281)
    at org.apache.derbyTesting.functionTests.tests.derbynet.NSSecurityMechanismT
est.setSecurityMechanism(NSSecurityMechanismTest.java:415)
    at org.apache.derbyTesting.functionTests.tests.derbynet.NSSecurityMechanismT
est.testNetworkServerSecurityMechanism(NSSecurityMechanismTest.java:323)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:64)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
mpl.java:43)
    at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:88)
    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)
5) DriverTestjunit.framework.AssertionFailedError: Timed out waiting for network
 server to start
    at org.apache.derbyTesting.junit.NetworkServerTestSetup.waitForServerStart(N
etworkServerTestSetup.java:281)
    at org.apache.derbyTesting.junit.NetworkServerTestSetup.setUp(NetworkServerT
estSetup.java:116)
    at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
    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)
6) DataSourceReferenceTest:clientjunit.framework.AssertionFailedError: Timed out
 waiting for network server to start
    at org.apache.derbyTesting.junit.NetworkServerTestSetup.waitForServerStart(N
etworkServerTestSetup.java:281)
    at org.apache.derbyTesting.junit.NetworkServerTestSetup.setUp(NetworkServerT
estSetup.java:116)
    at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
    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)
7) ImportExportTest:clientjunit.framework.AssertionFailedError: Timed out waitin
g for network server to start
    at org.apache.derbyTesting.junit.NetworkServerTestSetup.waitForServerStart(N
etworkServerTestSetup.java:281)
    at org.apache.derbyTesting.junit.NetworkServerTestSetup.setUp(NetworkServerT
estSetup.java:116)
    at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
    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)
8) ImportExportProcedureTestjunit.framework.AssertionFailedError: extinout\t1.da
t
    at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDir(DropDatabaseSet
up.java:129)
    at org.apache.derbyTesting.junit.DropDatabaseSetup.access$000(DropDatabaseSe
tup.java:38)
    at org.apache.derbyTesting.junit.DropDatabaseSetup$1.run(DropDatabaseSetup.j
ava:104)
    at java.security.AccessController.doPrivileged(AccessController.java:193)
    at org.apache.derbyTesting.junit.DropDatabaseSetup.removeDirectory(DropDatab
aseSetup.java:101)
    at org.apache.derbyTesting.junit.SupportFilesSetup.tearDown(SupportFilesSetu
p.java:127)
    at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
    at junit.extensions.TestSetup.run(TestSetup.java:23)

> intermittent network startup related errors in running junit nightly test suite
> -------------------------------------------------------------------------------
>
>                 Key: DERBY-2616
>                 URL: https://issues.apache.org/jira/browse/DERBY-2616
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure
>    Affects Versions: 10.3.0.0
>         Environment: m1_ibm15:220>sysinfo
> ------------------ Java Information ------------------
> Java Version:    1.5.0
> Java Vendor:     IBM Corporation
> Java home:       c:\p4\m1\ibm15\jre
> Java classpath:  c:/p4/m1/classes;c:/p4/m1/tools/java/jdbctests.zip;c:/p4/m1/too
> ls/java/jakarta-oro-2.0.8.jar;c:/p4/m1/tools/java/jgl3.1.0.jar;c:/p4/m1/tools/ja
> va/jndi/providerutil.jar;c:/p4/m1/tools/java/jndi/ldap.jar;c:/p4/m1/tools/java/j
> ndi/jndi.jar;c:/p4/m1/tools/java/jnl1.0F.zip;c:/p4/m1/tools/java/junit.jar;c:/p4
> /m1/tools/java/servlet-2_2b.jar;c:/p4/m1/tools/java/xslt4j-2_5_0/xercesImpl.jar;
> c:/p4/m1/tools/java/xslt4j-2_5_0/xml-apis.jar;c:/p4/m1/tools/java/xslt4j-2_5_0/x
> alan.jar
> OS name:         Windows XP
> OS architecture: x86
> OS version:      5.1 build 2600 Service Pack 2
> Java user name:  mikem
> Java user home:  C:\Documents and Settings\Administrator
> Java user dir:   C:\mikem\_tools
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.5
> --------- Derby Information --------
>            Reporter: Mike Matrigali
>
> I intermitently get network startup related errors in running the nightly full test suite
on my laptop, running XP, with a firewall and a VPN - I am not sure what if any of those environmental
factors is causing it.  I have been mostly ignoring the errors as it seemed like it usually
was only one test.  I my latest run it was more like 7 or 8.  I'll append exact tests as a
comment on this issue.
> To debug the problem I picked one -     org.apache.derbyTesting.functionTests.tests.derbynet.NSSecurityMechanismTest

> and ran it in a loop.  When I did this it failed everytime after the first one (and the
first one  intermittently failed).  When I bumped the  WAIT_TIME  up to 300000  and the SLEEP_TIME
to 500 in
> java/testing/org/apache/derbyTesting/junit/NetworkServerTestSetup.java  then the test
passed everytime .  In 30 runs the
> entire test took  varying times from 2 minutes to 6 minutes, mostly in the 4 minute range.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message