[ 
https://issues.apache.org/jira/browse/LUCENE-7326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15324674#comment-15324674
 ] 

Steve Rowe commented on LUCENE-7326:
------------------------------------

My Jenkins found a branch_6x seed that reproduces on master for the same method 
failure but a different cause:

{noformat}
   [junit4]   2> NOTE: reproduce with: ant test  
-Dtestcase=TestSimpleTextPostingsFormat -Dtests.method=testInvertedWrite 
-Dtests.seed=7EEFAF93C5A99DEA -Dtests.multiplier=2 -Dtests.nightly=true 
-Dtests.slow=true 
-Dtests.linedocsfile=/home/jenkins/lucene-data/enwiki.random.lines.txt 
-Dtests.locale=zh-TW -Dtests.timezone=Asia/Kabul -Dtests.asserts=true 
-Dtests.file.encoding=UTF-8
   [junit4] ERROR   0.29s J3 | TestSimpleTextPostingsFormat.testInvertedWrite 
<<<
   [junit4]    > Throwable #1: org.apache.lucene.index.CorruptIndexException: 
compound sub-files must have a valid codec header and footer: codec header 
mismatch: actual header=1718183276 vs expected header=1071082519 
(resource=BufferedChecksumIndexInput(MockIndexInputWrapper(MMapIndexInput(path="/var/lib/jenkins/jobs/Lucene-Solr-Nightly-6.x/workspace/lucene/build/codecs/test/J3/temp/lucene.codecs.simpletext.TestSimpleTextPostingsFormat_7EEFAF93C5A99DEA-001/index-MMapDirectory-002/_0_SimpleText_0.pst"))))
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([7EEFAF93C5A99DEA:679BE258BBF21636]:0)
   [junit4]    >        at 
org.apache.lucene.codecs.CodecUtil.verifyAndCopyIndexHeader(CodecUtil.java:287)
   [junit4]    >        at 
org.apache.lucene.codecs.lucene50.Lucene50CompoundFormat.write(Lucene50CompoundFormat.java:96)
   [junit4]    >        at 
org.apache.lucene.index.IndexWriter.createCompoundFile(IndexWriter.java:4681)
   [junit4]    >        at 
org.apache.lucene.index.DocumentsWriterPerThread.sealFlushedSegment(DocumentsWriterPerThread.java:496)
   [junit4]    >        at 
org.apache.lucene.index.DocumentsWriterPerThread.flush(DocumentsWriterPerThread.java:460)
   [junit4]    >        at 
org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:502)
   [junit4]    >        at 
org.apache.lucene.index.DocumentsWriter.postUpdate(DocumentsWriter.java:376)
   [junit4]    >        at 
org.apache.lucene.index.DocumentsWriter.updateDocuments(DocumentsWriter.java:429)
   [junit4]    >        at 
org.apache.lucene.index.IndexWriter.updateDocuments(IndexWriter.java:1333)
   [junit4]    >        at 
org.apache.lucene.index.IndexWriter.addDocuments(IndexWriter.java:1312)
   [junit4]    >        at 
org.apache.lucene.index.RandomIndexWriter.addDocument(RandomIndexWriter.java:140)
   [junit4]    >        at 
org.apache.lucene.index.BasePostingsFormatTestCase.testInvertedWrite(BasePostingsFormatTestCase.java:515)
   [junit4]    >        at java.lang.Thread.run(Thread.java:745)
   [junit4]   2> NOTE: leaving temporary files on disk at: 
/var/lib/jenkins/jobs/Lucene-Solr-Nightly-6.x/workspace/lucene/build/codecs/test/J3/temp/lucene.codecs.simpletext.TestSimpleTextPostingsFormat_7EEFAF93C5A99DEA-001
   [junit4]   2> NOTE: test params are: codec=Asserting(Lucene60): {}, 
docValues:{}, maxPointsInLeafNode=617, maxMBSortInHeap=6.3814037394847265, 
sim=ClassicSimilarity, locale=zh-TW, timezone=Asia/Kabul
   [junit4]   2> NOTE: Linux 4.1.0-custom2-amd64 amd64/Oracle Corporation 
1.8.0_77 (64-bit)/cpus=16,threads=1,free=222363136,total=450887680
   [junit4]   2> NOTE: All tests run in this JVM: [TestMemoryPostingsFormat, 
TestSimpleTextCompoundFormat, TestSimpleTextPostingsFormat]
{noformat}

> TestSimpleTextPostingsFormat.testInvertedWrite() failure: An SPI class of 
> type PostingsFormat with name 'SimpleText' does not exist
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-7326
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7326
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Steve Rowe
>
> My Jenkins found a master seed that reproduces on branch_6x but not on 
> branch_6_1:
> {noformat}
> Checking out Revision 963206969eddca6ec743f5f0901e0abdfeacd3cc 
> (refs/remotes/origin/master)
> [...]
>   2> NOTE: reproduce with: ant test  -Dtestcase=TestSimpleTextPostingsFormat 
> -Dtests.method=testInvertedWrite -Dtests.seed=7555A4CF724BDB74 
> -Dtests.multiplier=2 -Dtests.nightly=true -Dtests.slow=true 
> -Dtests.linedocsfile=/home/jenkins/lucene-data/enwiki.random.lines.txt 
> -Dtests.locale=es -Dtests.timezone=Australia/Brisbane -Dtests.asserts=true 
> -Dtests.file.encoding=UTF-8
> [23:09:22.113] ERROR   0.23s J3 | 
> TestSimpleTextPostingsFormat.testInvertedWrite <<<
>    > Throwable #1: java.lang.IllegalArgumentException: An SPI class of type 
> org.apache.lucene.codecs.PostingsFormat with name 'SimpleText' 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, 
> BlockTreeOrds, BloomFilter, Direct, FSTOrd50, FST50, Memory, AutoPrefix, 
> Lucene50]
>    >    at 
> __randomizedtesting.SeedInfo.seed([7555A4CF724BDB74:6C21E9040C1050A8]:0)
>    >    at 
> org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:116)
>    >    at 
> org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:112)
>    >    at 
> org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(PerFieldPostingsFormat.java:258)
>    >    at 
> org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:341)
>    >    at 
> org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:106)
>    >    at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:67)
>    >    at 
> org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:61)
>    >    at 
> org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:53)
>    >    at 
> org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:675)
>    >    at 
> org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:76)
>    >    at 
> org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:63)
>    >    at 
> org.apache.lucene.index.RandomIndexWriter.getReader(RandomIndexWriter.java:383)
>    >    at 
> org.apache.lucene.index.RandomIndexWriter.getReader(RandomIndexWriter.java:313)
>    >    at 
> org.apache.lucene.index.BasePostingsFormatTestCase.testInvertedWrite(BasePostingsFormatTestCase.java:519)
> [...]
>   2> NOTE: test params are: codec=Asserting(Lucene62): {}, docValues:{}, 
> maxPointsInLeafNode=1657, maxMBSortInHeap=5.09627287608914, 
> sim=RandomSimilarity(queryNorm=true,coord=crazy): {f_DOCS_AND_FREQS=DFR 
> I(ne)Z(0.3), field=DFR I(ne)L3(800.0), 
> f_DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS=DFI(Saturated), 
> f_DOCS_AND_FREQS_AND_POSITIONS=IB SPL-L1, titleTokenized=IB LL-L3(800.0), 
> body=DFR I(F)L1, f_DOCS=DFR I(n)L2}, locale=es, timezone=Australia/Brisbane
>   2> NOTE: Linux 4.1.0-custom2-amd64 amd64/Oracle Corporation 1.8.0_77 
> (64-bit)/cpus=16,threads=1,free=257107688,total=486539264
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to