lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven A Rowe <sar...@syr.edu>
Subject RE: [JENKINS-MAVEN] Lucene-Solr-Maven-3.x #155: POMs out of sync
Date Fri, 17 Jun 2011 19:36:22 GMT
The problem with this failing test under the Maven build is a merged-form-trunk-but-not-adjusted-for-branch_3x
property setting tests.luceneMatchVersion=4.0 in the Solr UIMA contrib's POM.

I've opened LUCENE-3211 to fix this by making all Solr testing under Maven default to tests.luceneMatchVersion=LUCENE_CURRENT.

Version.LUCENE_CURRENT is deprecated, and AFAICT (from LUCENE-2080) is slated for removal
under the next major Lucene version (5.0), but it seems to me like testing from Solr using
the current lucene version is the right thing to do.

Maybe Solr configurations should start supporting a non-advertised TEST_LUCENE_CURRENT (like
LuceneTestCase.TEST_VERSION_CURRENT)?

Steve

> -----Original Message-----
> From: Apache Jenkins Server [mailto:jenkins@builds.apache.org]
> Sent: Friday, June 17, 2011 8:07 AM
> To: dev@lucene.apache.org
> Subject: [JENKINS-MAVEN] Lucene-Solr-Maven-3.x #155: POMs out of sync
> 
> Build: https://builds.apache.org/job/Lucene-Solr-Maven-3.x/155/
> 
> 1 tests failed.
> FAILED:
> org.apache.solr.uima.processor.UIMAUpdateRequestProcessorTest.org.apache.
> solr.uima.processor.UIMAUpdateRequestProcessorTest
> 
> Error Message:
> org.apache.solr.common.SolrException: Invalid luceneMatchVersion '4.0',
> valid values are: [LUCENE_20, LUCENE_21, LUCENE_22, LUCENE_23, LUCENE_24,
> LUCENE_29, LUCENE_30, LUCENE_31, LUCENE_32, LUCENE_33, LUCENE_CURRENT] or
> a string in format 'V.V'
> 
> Stack Trace:
> java.lang.RuntimeException: org.apache.solr.common.SolrException: Invalid
> luceneMatchVersion '4.0', valid values are: [LUCENE_20, LUCENE_21,
> LUCENE_22, LUCENE_23, LUCENE_24, LUCENE_29, LUCENE_30, LUCENE_31,
> LUCENE_32, LUCENE_33, LUCENE_CURRENT] or a string in format 'V.V'
> 	at
> org.apache.solr.util.TestHarness.createConfig(TestHarness.java:81)
> 	at org.apache.solr.SolrTestCaseJ4.initCore(SolrTestCaseJ4.java:249)
> 	at org.apache.solr.SolrTestCaseJ4.initCore(SolrTestCaseJ4.java:113)
> 	at
> org.apache.solr.uima.processor.UIMAUpdateRequestProcessorTest.beforeClass
> (UIMAUpdateRequestProcessorTest.java:53)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :57)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
> mpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:616)
> 	at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMeth
> od.java:44)
> 	at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallabl
> e.java:15)
> 	at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod
> .java:41)
> 	at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java
> :27)
> 	at
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:3
> 1)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> 	at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java
> :35)
> 	at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Prov
> ider.java:146)
> 	at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.jav
> a:97)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :57)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
> mpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:616)
> 	at
> org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(
> ProviderFactory.java:103)
> 	at $Proxy0.invoke(Unknown Source)
> 	at
> org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireS
> tarter.java:145)
> 	at
> org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(Suref
> ireStarter.java:87)
> 	at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
> Caused by: org.apache.solr.common.SolrException: Invalid
> luceneMatchVersion '4.0', valid values are: [LUCENE_20, LUCENE_21,
> LUCENE_22, LUCENE_23, LUCENE_24, LUCENE_29, LUCENE_30, LUCENE_31,
> LUCENE_32, LUCENE_33, LUCENE_CURRENT] or a string in format 'V.V'
> 
> 	at
> org.apache.solr.core.Config.parseLuceneVersionString(Config.java:353)
> 	at org.apache.solr.core.Config.getLuceneVersion(Config.java:337)
> 	at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:133)
> 	at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:97)
> 	at
> org.apache.solr.util.TestHarness.createConfig(TestHarness.java:78)
> 	... 25 more
> Caused by: java.lang.IllegalArgumentException: No enum const class
> org.apache.lucene.util.Version.LUCENE_40
> 	at java.lang.Enum.valueOf(Enum.java:214)
> 	at org.apache.lucene.util.Version.valueOf(Version.java:33)
> 	at
> org.apache.solr.core.Config.parseLuceneVersionString(Config.java:351)
> 	... 29 more
> 
> 
> 
> 
> Build Log (for compile errors):
> [...truncated 19511 lines...]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org

Mime
View raw message