1. does it fail when you run it via ant (ant build)?
2. the problem is very likely in dependencies declared in Maven (as
compared to what the ivy dependencies are).

Dawid

On Fri, Apr 24, 2015 at 10:24 AM, Per Steffensen <st...@designware.dk> wrote:
> I have checked out tag lucene_solr_5_1_0 and try to run the test-suite using
> maven
>   ant get-maven-poms
>   cd maven-build/
>   mvn -N -Pbootstrap -DskipTests install
>   mvn -Dmaven.test.failure.ignore=true test
>
> The following tests fail running the test-suite this way using maven
> * SuggestFieldTest - all test methods fail
> * hadoop.MorphlineBasicMiniMRTest and hadoop.MorphlineGoLiveMiniMRTest  -
> setupClass fails
> * TestCoreDiscovery.testCoreDirCantRead - test fails
>
> Now trying to run in Eclipse
>   ant eclipse
>   Open Eclipse and import project
> Running the failing tests
> * SuggestFieldTest - test passes
> * hadoop.MorphlineBasicMiniMRTest and hadoop.MorphlineGoLiveMiniMRTest -
> setupClass fails
> * TestCoreDiscovery.testCoreDirCantRead - test passes
>
> Can anyone explain this? Would expect a green test-suite for a released
> solr/lucene.
> What might be wrong with SuggestFieldTest and TestCoreDiscovery tests run
> through maven (fail), compared to run through Eclipse (pass)?
> Why does the Morphline tests fail (both maven and Eclipse)?
> It is the correct way to run tests using maven? It there another way the
> test-suite is usually run (e.g. using ant)?
>
> Thanks in advance.
>
> Regards, Per Steffensen
> ------------------------------------- fail stacktraces
> -----------------------------------
> * SuggestFieldTest fails using maven (not Eclipse) like this:
> java.lang.IllegalArgumentException: An SPI class of type
> org.apache.lucene.codecs.PostingsFormat with name 'completion' does not
> exist.  You need to add the corresponding JAR file supporting this SPI to
> your classpath.  The current classpath supports the following names:
> [MockRandom, RAMOnly, LuceneFixedGap, LuceneVarGapFixedInterval,
> LuceneVarGapDocFreqInterval, TestBloomFilteredLucenePostings, Asserting,
> Lucene50, BlockTreeOrds, BloomFilter, Direct, FSTOrd50, FST50, Memory,
> SimpleText]
>     at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:111)
>     at
> org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:100)
>     at
> org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(PerFieldPostingsFormat.java:255)
>     at
> org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:336)
>     at
> org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:104)
>     at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:65)
>     at
> org.apache.lucene.index.ReadersAndUpdates.getReader(ReadersAndUpdates.java:132)
>     at
> org.apache.lucene.index.ReadersAndUpdates.getReadOnlyClone(ReadersAndUpdates.java:184)
>     at
> org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:99)
>     at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:429)
>     at
> org.apache.lucene.index.RandomIndexWriter.getReader(RandomIndexWriter.java:343)
>     at
> org.apache.lucene.index.RandomIndexWriter.getReader(RandomIndexWriter.java:280)
>     at
> org.apache.lucene.search.suggest.document.SuggestFieldTest.testReturnedDocID(SuggestFieldTest.java:459)
>
> * The Morphline tests fail (both maven and Eclipse) like this:
> org.apache.hadoop.yarn.exceptions.YarnRuntimeException:
> java.lang.NoClassDefFoundError:
> org/apache/hadoop/yarn/server/applicationhistoryservice/ApplicationHistoryWriter
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
>     at
> org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createRMApplicationHistoryWriter(ResourceManager.java:357)
>     at
> org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceInit(ResourceManager.java:468)
>     at
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
>     at
> org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(ResourceManager.java:989)
>     at
> org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:255)
>     at
> org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
>     at
> org.apache.solr.hadoop.hack.MiniYARNCluster$ResourceManagerWrapper.serviceStart(MiniYARNCluster.java:200)
>     at
> org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
>     at
> org.apache.hadoop.service.CompositeService.serviceStart(CompositeService.java:120)
>     at
> org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
>     at
> org.apache.solr.hadoop.hack.MiniMRClientClusterFactory.create(MiniMRClientClusterFactory.java:83)
>     at
> org.apache.solr.hadoop.hack.MiniMRCluster.<init>(MiniMRCluster.java:191)
>     at
> org.apache.solr.hadoop.hack.MiniMRCluster.<init>(MiniMRCluster.java:179)
>     at
> org.apache.solr.hadoop.hack.MiniMRCluster.<init>(MiniMRCluster.java:171)
>     at
> org.apache.solr.hadoop.MorphlineBasicMiniMRTest.setupClass(MorphlineBasicMiniMRTest.java:174)
>
> * TestCoreDiscovery.testCoreDirCantRead fails using maven (not Eclipse) like
> this:
> java.lang.AssertionError: null
>     at
> __randomizedtesting.SeedInfo.seed([C815A145972F10FC:B5517513E8A8DE8E]:0)
>     at org.junit.Assert.fail(Assert.java:92)
>     at org.junit.Assert.assertTrue(Assert.java:43)
>     at org.junit.Assert.assertNull(Assert.java:551)
>     at org.junit.Assert.assertNull(Assert.java:562)
>     at
> org.apache.solr.core.TestCoreDiscovery.testCoreDirCantRead(TestCoreDiscovery.java:286)
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to