You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Alex Karasulu <ak...@apache.org> on 2007/08/15 18:49:56 UTC

[ApacheDS] [NTP] Failing NTP test case

Enrique,

I'm getting the following failure with integration tests enabled on NTP.

We cannot have tests failing regularly as has been the case with the
breakage in the trunk due to the Kerberosin the past. This is now more
worrisome since we are close to a release.  Take special care to make
sure you minimize trunk breakage.

Attached you'll find the surefire generated output file for the the failing
test.  Looks like some timeout problem which can easily be fixed.

Alex

================================================
-------------------------------------------------------------------------------
Test set: org.apache.directory.server.NtpITest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.279 sec
<<< F
AILURE!
testNtp(org.apache.directory.server.NtpITest)  Time elapsed: 11.256 sec  <<<
ERR
OR!
java.net.SocketTimeoutException: Receive timed out
        at java.net.PlainDatagramSocketImpl.receive0(Native Method)
        at java.net.PlainDatagramSocketImpl.receive(
PlainDatagramSocketImpl.java
:136)
        at java.net.DatagramSocket.receive(DatagramSocket.java:712)
        at org.apache.commons.net.ntp.NTPUDPClient.getTime(NTPUDPClient.java
:89)
        at org.apache.directory.server.NtpITest.testNtp(NtpITest.java:130)
        at org.apache.directory.server.NtpITest.testNtp(NtpITest.java:130)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.maven.surefire.junit.JUnitTestSet.execute(
JUnitTestSet.jav
a:213)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
tSet(AbstractDirectoryTestSuite.java:138)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
stractDirectoryTestSuite.java:163)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:244)
        at org.apache.maven.surefire.booter.SurefireBooter.main(
SurefireBooter.j
ava:814)

Re: [ApacheDS] [NTP] Failing NTP test case

Posted by Alex Karasulu <ak...@apache.org>.
Ignoring this test until it works: see committed revision 566310.

Alex

On 8/15/07, Alex Karasulu <ak...@apache.org> wrote:
>
> Enrique,
>
> I'm getting the following failure with integration tests enabled on NTP.
>
> We cannot have tests failing regularly as has been the case with the
> breakage in the trunk due to the Kerberosin the past. This is now more
> worrisome since we are close to a release.  Take special care to make
> sure you minimize trunk breakage.
>
> Attached you'll find the surefire generated output file for the the
> failing
> test.  Looks like some timeout problem which can easily be fixed.
>
> Alex
>
> ================================================
>
> -------------------------------------------------------------------------------
> Test set: org.apache.directory.server.NtpITest
> -------------------------------------------------------------------------------
>
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.279 sec
> <<< F
> AILURE!
> testNtp(org.apache.directory.server.NtpITest)  Time elapsed: 11.256 sec
> <<< ERR
> OR!
> java.net.SocketTimeoutException : Receive timed out
>         at java.net.PlainDatagramSocketImpl.receive0(Native Method)
>         at java.net.PlainDatagramSocketImpl.receive(
> PlainDatagramSocketImpl.java
> :136)
>         at java.net.DatagramSocket.receive (DatagramSocket.java:712)
>         at org.apache.commons.net.ntp.NTPUDPClient.getTime(
> NTPUDPClient.java:89)
>         at org.apache.directory.server.NtpITest.testNtp(NtpITest.java:130)
>         at org.apache.directory.server.NtpITest.testNtp (NtpITest.java
> :130)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at junit.framework.TestCase.runTest(TestCase.java:154)
>         at junit.framework.TestCase.runBare(TestCase.java :127)
>         at junit.framework.TestResult$1.protect(TestResult.java:106)
>         at junit.framework.TestResult.runProtected(TestResult.java:124)
>         at junit.framework.TestResult.run(TestResult.java:109)
>         at junit.framework.TestCase.run(TestCase.java:118)
>         at junit.framework.TestSuite.runTest(TestSuite.java:208)
>         at junit.framework.TestSuite.run(TestSuite.java:203)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.maven.surefire.junit.JUnitTestSet.execute(
> JUnitTestSet.jav
> a:213)
>         at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
> tSet(AbstractDirectoryTestSuite.java:138)
>         at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
> stractDirectoryTestSuite.java:163)
>         at org.apache.maven.surefire.Surefire.run( Surefire.java:84)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
> refireBooter.java:244)
>         at org.apache.maven.surefire.booter.SurefireBooter.main(
> SurefireBooter.j
> ava:814)
>
>
>

Re: [ApacheDS] [NTP] Failing NTP test case

Posted by Alex Karasulu <ak...@apache.org>.
Yep good job that worked.  I will check in the pom without the exclusion
now.

Alex

On 8/15/07, Enrique Rodriguez <en...@gmail.com> wrote:
>
> On 8/15/07, Alex Karasulu <ak...@apache.org> wrote:
> > ...
> > Attached you'll find the surefire generated output file for the the
> failing
> > test.  Looks like some timeout problem which can easily be fixed.
>
> Both Kerberos TGS tests and the NTP integration test were using
> InetAddress.getLocalHost(), which would fail if your host/IP wasn't
> properly configured.  I updated this to use InetAddress.getByName(
> null ), which will more reliably return the loopback address.
>
> Could you 'svn up' and retest?  I couldn't see any other reason for
> the timeout and it appeared to be the same issue for your host as the
> Kerberos TGS tests that failed.
>
> If it works for you I will re-enable the test.
>
> Enrique
>

Re: [ApacheDS] [NTP] Failing NTP test case

Posted by Enrique Rodriguez <en...@gmail.com>.
On 8/15/07, Alex Karasulu <ak...@apache.org> wrote:
> ...
> Attached you'll find the surefire generated output file for the the failing
> test.  Looks like some timeout problem which can easily be fixed.

Both Kerberos TGS tests and the NTP integration test were using
InetAddress.getLocalHost(), which would fail if your host/IP wasn't
properly configured.  I updated this to use InetAddress.getByName(
null ), which will more reliably return the loopback address.

Could you 'svn up' and retest?  I couldn't see any other reason for
the timeout and it appeared to be the same issue for your host as the
Kerberos TGS tests that failed.

If it works for you I will re-enable the test.

Enrique