You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Bing Yu <ic...@gmail.com> on 2011/07/28 12:16:27 UTC

I can't pass the unit test when compile from apache-solr-3.3.0-src

I just goto apache-solr-3.3.0/solr and run 'ant test'

I find that the junit test will always fail, and told me ’BUILD FAILED‘

but if I type 'ant dist', I can get a apache-solr-3.3-SNAPSHOT.war
with no warning.

Is it a problem just me?

my server:Centos 5.6 64bit/apache-ant-1.8.2 /junit and jdk (both
jrocket and sun jdk1.6 fails)

Re: I can't pass the unit test when compile from apache-solr-3.3.0-src

Posted by lee carroll <le...@googlemail.com>.
Hi Chris,

That makes sense. I was behind fire wall when running both builds. I
thought I was correctly proxied - but maybe the request was being
squashed
by something else before it even got to the firewall.

I've just ran tests again but this time outside of fire wall and all pass.

Thanks a lot

Lee C

On 2 September 2011 01:17, Chris Hostetter <ho...@fucit.org> wrote:
>
> : Trunk builds and tests fine but 3.3 fails the test below
>        ...
> : NOTE: reproduce with: ant test -Dtestcase=ContentStreamTest
> : -Dtestmethod=testURLStream
> : -Dtests.seed=743785413891938113:-7792321629547565878
>        ...
> : java.net.ConnectException: Connection timed out: connect
>        ...
> :       at org.apache.solr.common.util.ContentStreamTest.testURLStream(ContentStreamTest.java:70)
> :       at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1277)
> :       at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1195)
>
> The line in question above is just trying to open a URL connection to
> svn.apache.org.  so if it's failing for you that probably means you are
> running tests on a box where the public internet is unreachable?
>
> the reason you don't see the same failure on trunk is because simonw
> seems to have fixed the test on trunk to use a proper "assume" statement,
> as part of a larger unrealted issue...
>
> https://svn.apache.org/viewvc?view=revision&revision=1055636
> https://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/common/util/ContentStreamTest.java?r1=1055636&r2=1055635&pathrev=1055636
>
> ...i'll backport that particular fix.
>
>
> -Hoss
>

Re: I can't pass the unit test when compile from apache-solr-3.3.0-src

Posted by Chris Hostetter <ho...@fucit.org>.
: Trunk builds and tests fine but 3.3 fails the test below
	...
: NOTE: reproduce with: ant test -Dtestcase=ContentStreamTest
: -Dtestmethod=testURLStream
: -Dtests.seed=743785413891938113:-7792321629547565878
	...
: java.net.ConnectException: Connection timed out: connect
	...
: 	at org.apache.solr.common.util.ContentStreamTest.testURLStream(ContentStreamTest.java:70)
: 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1277)
: 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1195)

The line in question above is just trying to open a URL connection to 
svn.apache.org.  so if it's failing for you that probably means you are 
running tests on a box where the public internet is unreachable?

the reason you don't see the same failure on trunk is because simonw 
seems to have fixed the test on trunk to use a proper "assume" statement, 
as part of a larger unrealted issue...

https://svn.apache.org/viewvc?view=revision&revision=1055636
https://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/common/util/ContentStreamTest.java?r1=1055636&r2=1055635&pathrev=1055636

...i'll backport that particular fix.


-Hoss

Re: I can't pass the unit test when compile from apache-solr-3.3.0-src

Posted by lee carroll <le...@googlemail.com>.
Not sure if this has progressed further but I'm getting test failure
for 3.3 also.

Trunk builds and tests fine but 3.3 fails the test below

(Note i've a new box so could be a silly set up issue i've missed but
i think everything is in place (latest version of java 1.6, latest
version of ant) .... main difference is the number of cpu's went from
1 to 4)

failed test output is:
Testsuite: org.apache.solr.common.util.ContentStreamTest
Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 21.172 sec
------------- Standard Error -----------------
NOTE: reproduce with: ant test -Dtestcase=ContentStreamTest
-Dtestmethod=testURLStream
-Dtests.seed=743785413891938113:-7792321629547565878
NOTE: test params are: locale=ar_QA, timezone=Europe/Vilnius
NOTE: all tests run in this JVM:
[CommonGramsQueryFilterFactoryTest, TestBrazilianStemFilterFactory,
TestCzechStemFilterFactory, TestFrenchMinimalStemFilterFactory,
TestHindiFilters, TestKeywordMarkerFilterFactory,
TestPatternReplaceFilter, TestRemoveDuplicatesTokenFilter,
TestStemmerOverrideFilterFactory, TestUAX29URLEmailTokenizerFactory,
SolrExceptionTest, LargeVolumeJettyTest, TestUpdateRequestCodec,
ContentStreamTest]
NOTE: Windows XP 5.1 x86/Sun Microsystems Inc. 1.6.0_27
(32-bit)/cpus=4,threads=2,free=6342464,total=16252928
------------- ---------------- ---------------

Testcase: testStringStream took 0 sec
Testcase: testFileStream took 0 sec
Testcase: testURLStream took 21.157 sec
	Caused an ERROR
Connection timed out: connect
java.net.ConnectException: Connection timed out: connect
	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:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:395)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:234)
	at sun.net.www.http.HttpClient.New(HttpClient.java:307)
	at sun.net.www.http.HttpClient.New(HttpClient.java:324)
	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
	at java.net.URL.openStream(URL.java:1010)
	at org.apache.solr.common.util.ContentStreamTest.testURLStream(ContentStreamTest.java:70)
	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1277)
	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1195)



On 3 August 2011 01:51, Shawn Heisey <so...@elyograg.org> wrote:
> On 7/29/2011 5:26 PM, Chris Hostetter wrote:
>>
>> Can you please be specific...
>>  * which test(s) fail for you?
>>  * what are the failures?
>>
>> Any time a test fails, that info appears in the "ant test" output, and the
>> full details or all tests are written to build/test-results
>>
>> you can run "ant test-reports" from the solr directory to generate an HTML
>> report of all the success/failure info.
>
> I am also having a consistent build failure with the 3.3 source.  Some info
> from junit about the failure is below.  If you want something different I
> still have it in my session, let me know.
>
>    [junit] NOTE: reproduce with: ant test
> -Dtestcase=TestSqlEntityProcessorDelta
> -Dtestmethod=testNonWritablePersistFile
> -Dtests.seed=4609081405510352067:771607526385155597
>    [junit] NOTE: test params are: locale=ko_KR, timezone=Asia/Saigon
>    [junit] NOTE: all tests run in this JVM:
>    [junit] [TestCachedSqlEntityProcessor, TestClobTransformer,
> TestContentStreamDataSource, TestDataConfig, TestDateFormatTransformer,
> TestDocBuilder, TestDocBuilder2, TestEntityProcessorBase, TestErrorHandling,
> TestEvaluatorBag, TestF                                 eldReader,
> TestFileListEntityProcessor, TestJdbcDataSource, TestLineEntityProcessor,
> TestNumberFormatTransformer, TestPlainTextEntityProcessor,
> TestRegexTransformer, TestScriptTransformer, TestSqlEntityProcessor,
> TestSqlEntityProcessor2
>  TestSqlEntityProcessorDelta]
>    [junit] NOTE: Linux 2.6.18-238.12.1.el5.centos.plusxen amd64/Sun
> Microsystems Inc. 1.6.0_26
> (64-bit)/cpus=3,threads=4,free=100917744,total=254148608
>
>
> Here's what I did on the last run:
>
> rm -rf lucene_solr_3_3
> svn co https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_3_3
> lucene_solr_3_3
> cd lucene_solr_3_3/solr
> ant clean test
>
> Thanks,
> Shawn
>
>

Re: I can't pass the unit test when compile from apache-solr-3.3.0-src

Posted by Shawn Heisey <so...@elyograg.org>.
On 7/29/2011 5:26 PM, Chris Hostetter wrote:
> Can you please be specific...
>   * which test(s) fail for you?
>   * what are the failures?
>
> Any time a test fails, that info appears in the "ant test" output, and the
> full details or all tests are written to build/test-results
>
> you can run "ant test-reports" from the solr directory to generate an HTML
> report of all the success/failure info.

I am also having a consistent build failure with the 3.3 source.  Some 
info from junit about the failure is below.  If you want something 
different I still have it in my session, let me know.

     [junit] NOTE: reproduce with: ant test 
-Dtestcase=TestSqlEntityProcessorDelta 
-Dtestmethod=testNonWritablePersistFile 
-Dtests.seed=4609081405510352067:771607526385155597
     [junit] NOTE: test params are: locale=ko_KR, timezone=Asia/Saigon
     [junit] NOTE: all tests run in this JVM:
     [junit] [TestCachedSqlEntityProcessor, TestClobTransformer, 
TestContentStreamDataSource, TestDataConfig, TestDateFormatTransformer, 
TestDocBuilder, TestDocBuilder2, TestEntityProcessorBase, 
TestErrorHandling, TestEvaluatorBag, 
TestF                                 eldReader, 
TestFileListEntityProcessor, TestJdbcDataSource, 
TestLineEntityProcessor, TestNumberFormatTransformer, 
TestPlainTextEntityProcessor, TestRegexTransformer, 
TestScriptTransformer, TestSqlEntityProcessor, 
TestSqlEntityProcessor2                                    
TestSqlEntityProcessorDelta]
     [junit] NOTE: Linux 2.6.18-238.12.1.el5.centos.plusxen amd64/Sun 
Microsystems Inc. 1.6.0_26 
(64-bit)/cpus=3,threads=4,free=100917744,total=254148608


Here's what I did on the last run:

rm -rf lucene_solr_3_3
svn co 
https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_3_3 
lucene_solr_3_3
cd lucene_solr_3_3/solr
ant clean test

Thanks,
Shawn


Re: I can't pass the unit test when compile from apache-solr-3.3.0-src

Posted by Chris Hostetter <ho...@fucit.org>.
: I find that the junit test will always fail, and told me ’BUILD FAILED‘
: 
: but if I type 'ant dist', I can get a apache-solr-3.3-SNAPSHOT.war
: with no warning.
: 
: Is it a problem just me?

Can you please be specific...
 * which test(s) fail for you?
 * what are the failures?

Any time a test fails, that info appears in the "ant test" output, and the 
full details or all tests are written to build/test-results

you can run "ant test-reports" from the solr directory to generate an HTML 
report of all the success/failure info.



-Hoss