lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: Error: A SPI class of type org.apache.lucene.index.codecs.PostingsFormat with name 'MockSep' does not exist.
Date Fri, 11 Nov 2011 10:23:25 GMT
Hi,

 

The test classpath of the benchmark module seems to be invalid when the
benchmark runs standalone. It's an build.xml bug.

 

Uwe

 

-----

Uwe Schindler

H.-H.-Meier-Allee 63, D-28213 Bremen

http://www.thetaphi.de <http://www.thetaphi.de/> 

eMail: uwe@thetaphi.de

 

From: Shai Erera [mailto:serera@gmail.com] 
Sent: Friday, November 11, 2011 9:04 AM
To: dev@lucene.apache.org
Subject: Error: A SPI class of type
org.apache.lucene.index.codecs.PostingsFormat with name 'MockSep' does not
exist.

 

Hi

I ran tests for trunk's benchmark today and hit this strange error:

    [junit] Testcase:
testCloseIndexFalse(org.apache.lucene.benchmark.byTask.TestPerfTasksLogic):
Caused an ERROR
    [junit] A SPI class of type
org.apache.lucene.index.codecs.PostingsFormat with name 'MockSep' does not
exist. You need to add the corresponding JAR file supporting this SPI to
your classpath.The current classpath supports the following names:
[Lucene40, Pulsing40, SimpleText, Memory]
    [junit] java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.index.codecs.PostingsFormat with name 'MockSep' does not
exist. You need to add the corresponding JAR file supporting this SPI to
your classpath.The current classpath supports the following names:
[Lucene40, Pulsing40, SimpleText, Memory]
    [junit]     at
org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:55)
    [junit]     at
org.apache.lucene.index.codecs.PostingsFormat.forName(PostingsFormat.java:76
)
    [junit]     at
org.apache.lucene.index.codecs.perfield.PerFieldPostingsFormat$VisitPerField
File.<init>(PerFieldPostingsFormat.java:273)
    [junit]     at
org.apache.lucene.index.codecs.perfield.PerFieldPostingsFormat$1.<init>(PerF
ieldPostingsFormat.java:317)
    [junit]     at
org.apache.lucene.index.codecs.perfield.PerFieldPostingsFormat.files(PerFiel
dPostingsFormat.java:317)
    [junit]     at org.apache.lucene.index.codecs.Codec.files(Codec.java:47)
    [junit]     at
org.apache.lucene.index.SegmentInfo.files(SegmentInfo.java:639)
    [junit]     at
org.apache.lucene.index.DocumentsWriterPerThread.flush(DocumentsWriterPerThr
ead.java:482)
    [junit]     at
org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:431)
    [junit]     at
org.apache.lucene.index.DocumentsWriter.postUpdate(DocumentsWriter.java:322)
    [junit]     at
org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:
395)
    [junit]     at
org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1499)
    [junit]     at
org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1259)
    [junit]     at
org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1240)
    [junit]     at
org.apache.lucene.benchmark.byTask.tasks.AddDocTask.doLogic(AddDocTask.java:
69)
    [junit]     at
org.apache.lucene.benchmark.byTask.tasks.PerfTask.runAndMaybeStats(PerfTask.
java:129)
    [junit]     at
org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doSerialTasks(TaskSequ
ence.java:197)
    [junit]     at
org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doLogic(TaskSequence.j
ava:138)
    [junit]     at
org.apache.lucene.benchmark.byTask.tasks.PerfTask.runAndMaybeStats(PerfTask.
java:141)
    [junit]     at
org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doSerialTasks(TaskSequ
ence.java:197)
    [junit]     at
org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doLogic(TaskSequence.j
ava:138)
    [junit]     at
org.apache.lucene.benchmark.byTask.tasks.PerfTask.runAndMaybeStats(PerfTask.
java:141)
    [junit]     at
org.apache.lucene.benchmark.byTask.utils.Algorithm.execute(Algorithm.java:30
1)
    [junit]     at
org.apache.lucene.benchmark.byTask.Benchmark.execute(Benchmark.java:76)
    [junit]     at
org.apache.lucene.benchmark.BenchmarkTestCase.execBenchmark(BenchmarkTestCas
e.java:67)
    [junit]     at
org.apache.lucene.benchmark.byTask.TestPerfTasksLogic.testCloseIndexFalse(Te
stPerfTasksLogic.java:603)
    [junit]     at
org.apache.lucene.util.LuceneTestCase$3$1.evaluate(LuceneTestCase.java:533)
    [junit]     at
org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.ja
va:149)
    [junit]     at
org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.ja
va:51)

Followed by these:

    [junit] NOTE: reproduce with: ant test -Dtestcase=TestPerfTasksLogic
-Dtestmethod=testIndexingWithFacets
-Dtests.seed=26c2adc077f0355f:-763bd42827af655a:b2df6bbaef0ac7c
-Dargs="-Dfile.encoding=Cp1252"
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestPerfTasksLogic
-Dtestmethod=testOptimizeMaxNumSegments
-Dtests.seed=26c2adc077f0355f:-79ce3cbc07a7e343:b2df6bbaef0ac7c
-Dargs="-Dfile.encoding=Cp1252"
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestPerfTasksLogic
-Dtestmethod=testHighlighting
-Dtests.seed=26c2adc077f0355f:1f4eecbeca069370:b2df6bbaef0ac7c
-Dargs="-Dfile.encoding=Cp1252"
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestPerfTasksLogic
-Dtestmethod=testCloseIndexFalse
-Dtests.seed=26c2adc077f0355f:-47b35020f6ccbd89:b2df6bbaef0ac7c
-Dargs="-Dfile.encoding=Cp1252"
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestPerfTasksLogic
-Dtestmethod=testReadTokens
-Dtests.seed=26c2adc077f0355f:76cb05b8fa27e559:b2df6bbaef0ac7c
-Dargs="-Dfile.encoding=Cp1252"
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestPerfTasksLogic
-Dtestmethod=testLineDocFile
-Dtests.seed=26c2adc077f0355f:-2d32663ce28f7a6e:b2df6bbaef0ac7c
-Dargs="-Dfile.encoding=Cp1252"
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestPerfTasksLogic
-Dtestmethod=testDisableCounting
-Dtests.seed=26c2adc077f0355f:-678cfcf3ff521786:b2df6bbaef0ac7c
-Dargs="-Dfile.encoding=Cp1252"
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestPerfTasksLogic
-Dtestmethod=testBGSearchTaskThreads
-Dtests.seed=26c2adc077f0355f:68db6088f9c4ffaa:b2df6bbaef0ac7c
-Dargs="-Dfile.encoding=Cp1252"
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestPerfTasksLogic
-Dtestmethod=testMergeScheduler
-Dtests.seed=26c2adc077f0355f:2102af5c6b9cb2a1:b2df6bbaef0ac7c
-Dargs="-Dfile.encoding=Cp1252"
    [junit] NOTE: test params are: codec=Lucene40:
{doctitle=Pulsing40(freqCutoff=9 minBlockSize=21 maxBlockSize=49),
docdatenum=Lucene40(minBlockSize=18 maxBlockSize=83),
body=Pulsing40(freqCutoff=9 minBlockSize=21 maxBlockSize=49),
$full_path$=MockFixedIntBlock(blockSize=61),
docname=PostingsFormat(name=MockSep), docid=PostingsFormat(name=MockSep),
country=Lucene40(minBlockSize=18 maxBlockSize=83),
docdate=Pulsing40(freqCutoff=9 minBlockSize=21 maxBlockSize=49),
sort_field=PostingsFormat(name=Memory),
doctimesecnum=PostingsFormat(name=SimpleText),
$payloads$=PostingsFormat(name=MockSep),
random_string=MockVariableIntBlock(baseBlockSize=5)},
sim=RandomSimilarityProvider(queryNorm=false,coord=true): {}, locale=fr_FR,
timezone=America/Pangnirtung

What I did was:
1) "svn up" from trunk root
2) "ant clean"
3) "cd modules/benchmark"
4) "ant test"

I repeated the steps again, and less errors appeared, but still the tests
failed. Is that something new? A new Codec maybe that's missing from the
classpath?

Shai


Mime
View raw message