Well, startHttpServer returns only after the server has been started, but I've seen in the past that it may not start all the servlets immediately, i.e. lazy loading.
Maybe we can make HttpReplicatorTest.startServer() loop while HttpReplicator.checkForUpdate throws ConnectException? That way, when the test actually starts, the server is already guaranteed to be up. But looking at the exception, and given the Jetty instance has been started, I'm not sure it will solve it. Shai On Sun, May 19, 2013 at 11:38 PM, Uwe Schindler <[email protected]> wrote: > Could it be that the jetty server did not yet started up completely? Osx > is slow... > > > > Policeman Jenkins Server <[email protected]> schrieb: >> >> Build: http://jenkins.thetaphi.de/job/Lucene-Solr-4.x-MacOSX/469/ >> Java: 64bit/jdk1.6.0 -XX:-UseCompressedOops -XX:+UseConcMarkSweepGC >> >> 1 tests failed. >> REGRESSION: org.apache.lucene.replicator.http.HttpReplicatorTest.testBasic >> >> Error Message: >> Connection to http://localhost:52124 refused >> >> Stack Trace: >> org.apache.http.conn.HttpHostConnectException: Connection to >> http://localhost:52124 refused >> at __randomizedtesting.SeedInfo.seed([E75C887E5C9618BD:4CA6956B834A9E93]:0) >> >> at >> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190) >> at >> org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294) >> >> at >> org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645) >> at >> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480) >> at >> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) >> at >> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805) >> >> at >> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784) >> at >> org.apache.lucene.replicator.http.HttpClientBase.executeGET(HttpClientBase.java:178) >> at >> org.apache.lucene.replicator.http.HttpReplicator.checkForUpdate(HttpReplicator.java:51) >> >> at >> org.apache.lucene.replicator.ReplicationClient.doUpdate(ReplicationClient.java:196) >> at >> org.apache.lucene.replicator.ReplicationClient.updateNow(ReplicationClient.java:402) >> at >> org.apache.lucene.replicator.http.HttpReplicatorTest.testBasic(HttpReplicatorTest.java:110) >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> >> at >> com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1559) >> at >> com.carrotsearch.randomizedtesting.RandomizedRunner.access$600(RandomizedRunner.java:79) >> at >> com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:737) >> >> at >> com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:773) >> at >> com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:787) >> at >> org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:50) >> >> at >> org.apache.lucene.util.TestRuleFieldCacheSanity$1.evaluate(TestRuleFieldCacheSanity.java:51) >> at >> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46) >> at >> com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55) >> >> at >> org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:49) >> at >> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70) >> at >> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48) >> >> at >> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) >> at >> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:358) >> at >> com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:782) >> >> at >> com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:442) >> at >> com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:746) >> at >> com.carrotsearch.randomizedtesting.RandomizedRunner$3.evaluate(RandomizedRunner.java:648) >> at >> com.carrotsearch.randomizedtesting.RandomizedRunner$4.evaluate(RandomizedRunner.java:682) >> >> at >> com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:693) >> at >> org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:46) >> at >> org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:42) >> >> at >> com.carrotsearch.randomizedtesting.rules.SystemPropertiesInvariantRule$1.evaluate(SystemPropertiesInvariantRule.java:55) >> at >> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39) >> >> at >> com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:39) >> at >> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) >> >> at >> org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:43) >> at >> org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:48) >> at >> org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:70) >> >> at >> org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:55) >> at >> com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36) >> at >> com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:358) >> >> at java.lang.Thread.run(Thread.java:680) >> Caused by: java.net.ConnectException: Connection >> refused >> at java.net.PlainSocketImpl.socketConnect(Native Method) >> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) >> >> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) >> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) >> >> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432) >> at java.net.Socket.connect(Socket.java:529) >> at >> org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:127) >> >> at >> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180) >> ... 48 more >> >> >> >> >> Build Log: >> [...truncated 7459 lines...] >> [junit4:junit4] Suite: org.apache.lucene.replicator.http.HttpReplicatorTest >> >> [junit4:junit4] 2> SLF4J: Failed to load class >> "org.slf4j.impl.StaticLoggerBinder". >> [junit4:junit4] 2> SLF4J: Defaulting to no-operation (NOP) logger >> implementation >> [junit4:junit4] 2> SLF4J: See >> http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. >> >> [junit4:junit4] 2> NOTE: reproduce with: ant test >> -Dtestcase=HttpReplicatorTest -Dtests.method=testBasic >> -Dtests.seed=E75C887E5C9618BD -Dtests.slow=true -Dtests.locale=nl_NL >> -Dtests.timezone=Europe/Monaco -Dtests.file.encoding=ISO-8859-1 >> >> [junit4:junit4] ERROR 3.42s | HttpReplicatorTest.testBasic <<< >> [junit4:junit4] > Throwable #1: >> org.apache.http.conn.HttpHostConnectException: Connection to >> http://localhost:52124 refused >> >> [junit4:junit4] > at >> __randomizedtesting.SeedInfo.seed([E75C887E5C9618BD:4CA6956B834A9E93]:0) >> [junit4:junit4] > at >> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190) >> [junit4:junit4] > at >> org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294) >> >> [junit4:junit4] > at >> org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645) >> [junit4:junit4] > at >> org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480) >> >> [junit4:junit4] > at >> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) >> [junit4:junit4] > at >> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805) >> >> [junit4:junit4] > at >> org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784) >> [junit4:junit4] > at >> org.apache.lucene.replicator.http.HttpClientBase.executeGET(HttpClientBase.java:178) >> >> [junit4:junit4] > >> at >> org.apache.lucene.replicator.http.HttpReplicator.checkForUpdate(HttpReplicator.java:51) >> [junit4:junit4] > at >> org.apache.lucene.replicator.ReplicationClient.doUpdate(ReplicationClient.java:196) >> [junit4:junit4] > at >> org.apache.lucene.replicator.ReplicationClient.updateNow(ReplicationClient.java:402) >> >> [junit4:junit4] > at >> org.apache.lucene.replicator.http.HttpReplicatorTest.testBasic(HttpReplicatorTest.java:110) >> [junit4:junit4] > at java.lang.Thread.run(Thread.java:680) >> [junit4:junit4] > Caused by: java.net.ConnectException: Connection refused >> >> [junit4:junit4] > at java.net.PlainSocketImpl.socketConnect(Native >> Method) >> [junit4:junit4] > at >> java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) >> >> [junit4:junit4] > at >> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) >> [junit4:junit4] > at >> java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) >> >> [junit4:junit4] > at >> java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432) >> [junit4:junit4] > at java.net.Socket.connect(Socket.java:529) >> >> [junit4:junit4] > at >> org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:127) >> [junit4:junit4] > at >> org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180) >> >> [junit4:junit4] > ... 48 more >> [junit4:junit4] 2> NOTE: test params are: codec=Lucene41, >> sim=RandomSimilarityProvider(queryNorm=false,coord=yes): {}, locale=nl_NL, >> timezone=Europe/Monaco >> [junit4:junit4] 2> NOTE: Mac OS X 10.8.3 x86_64/Apple Inc. >> 1.6.0_45 (64-bit)/cpus=2,threads=1,free=67789600,total=85000192 >> [junit4:junit4] 2> NOTE: All tests run in this JVM: [SessionTokenTest, >> IndexRevisionTest, IndexAndTaxonomyRevisionTest, >> IndexAndTaxonomyReplicationClientTest, IndexReplicationClientTest, >> LocalReplicatorTest, HttpReplicatorTest] >> >> [junit4:junit4] Completed in 3.50s, 1 test, 1 error <<< FAILURES! >> >> [...truncated 9 lines...] >> BUILD FAILED >> /Users/jenkins/jenkins-slave/workspace/Lucene-Solr-4.x-MacOSX/build.xml:383: >> The following error occurred while executing this line: >> >> /Users/jenkins/jenkins-slave/workspace/Lucene-Solr-4.x-MacOSX/build.xml:363: >> The following error occurred while executing this line: >> /Users/jenkins/jenkins-slave/workspace/Lucene-Solr-4.x-MacOSX/build.xml:39: >> The following error occurred while executing this line: >> >> /Users/jenkins/jenkins-slave/workspace/Lucene-Solr-4.x-MacOSX/lucene/build.xml:554: >> The following error occurred while executing this line: >> /Users/jenkins/jenkins-slave/workspace/Lucene-Solr-4.x-MacOSX/lucene/common-build.xml:1827: >> The following error occurred while executing this line: >> >> /Users/jenkins/jenkins-slave/workspace/Lucene-Solr-4.x-MacOSX/lucene/module-build.xml:61: >> The following error occurred while executing this line: >> /Users/jenkins/jenkins-slave/workspace/Lucene-Solr-4.x-MacOSX/lucene/common-build.xml:1243: >> The following error occurred while executing this line: >> >> /Users/jenkins/jenkins-slave/workspace/Lucene-Solr-4.x-MacOSX/lucene/common-build.xml:887: >> There were test failures: 7 suites, 30 tests, 1 error >> >> Total time: 51 minutes 44 seconds >> Build step 'Invoke Ant' marked build as failure >> >> Description set: Java: 64bit/jdk1.6.0 -XX:-UseCompressedOops >> -XX:+UseConcMarkSweepGC >> Archiving artifacts >> Recording test results >> Email was triggered for: Failure >> Sending email for trigger: Failure >> >> >> >> ------------------------------ >> >> To unsubscribe, e-mail: [email protected] >> >> For additional commands, e-mail: [email protected] >> >> > -- > Uwe Schindler > H.-H.-Meier-Allee 63, 28213 Bremen > http://www.thetaphi.de >
