Running "python3 -u dev-tools/scripts/addBackcompatIndexes.py 5.4.0" on
lucene_5x worked fine, however on trunk it gave the below error.

I notice there is a
lucene/core/src/java/org/apache/lucene/codecs/lucene54/Lucene54Codec.java
in lucene_5x but not in trunk.

Any ideas?

Upayavira

[junit4]   2> NOTE: reproduce with: ant test 
-Dtestcase=TestBackwardsCompatibility
-Dtests.method=testNextIntoWrongField -Dtests.seed=29AA9C3E704E7F75
-Dtests.slow=true -Dtests.locale=sr__#Latn -Dtests.timezone=Africa/Accra
-Dtests.asserts=true -Dtests.file.encoding=US-ASCII
   [junit4] ERROR   0.16s |
   TestBackwardsCompatibility.testNextIntoWrongField <<<
   [junit4]    > Throwable #1: java.lang.IllegalArgumentException: Could
   not load codec 'Lucene54'.  Did you forget to add
   lucene-backward-codecs.jar?
   [junit4]    >   at
   __randomizedtesting.SeedInfo.seed([29AA9C3E704E7F75:6F2D499D140AC549]:0)
   [junit4]    >   at
   org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:421)
   [junit4]    >   at
   org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:340)
   [junit4]    >   at
   
org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:53)
   [junit4]    >   at
   
org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:50)
   [junit4]    >   at
   
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:671)
   [junit4]    >   at
   
org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:73)
   [junit4]    >   at
   org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:63)
   [junit4]    >   at
   
org.apache.lucene.index.TestBackwardsCompatibility.testNextIntoWrongField(TestBackwardsCompatibility.java:1012)
   [junit4]    >   at java.lang.Thread.run(Thread.java:745)
   [junit4]    > Caused by: java.lang.IllegalArgumentException: An SPI
   class of type org.apache.lucene.codecs.Codec with name 'Lucene54'
   does not exist.  You need to add the corresponding JAR file
   supporting this SPI to your classpath.  The current classpath
   supports the following names: [Asserting, CheapBastard,
   FastCompressingStoredFields,
   FastDecompressionCompressingStoredFields,
   HighCompressionCompressingStoredFields, DummyCompressingStoredFields,
   SimpleText, Lucene60, Lucene50, Lucene53]
   [junit4]    >   at
   org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:116)
   [junit4]    >   at
   org.apache.lucene.codecs.Codec.forName(Codec.java:116)
   [junit4]    >   at
   org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:409)
   [junit4]    >   ... 43 more
   [junit4]   2> NOTE: reproduce with: ant test 
   -Dtestcase=TestBackwardsCompatibility
   -Dtests.method=testAddOldIndexesReader -Dtests.seed=29AA9C3E704E7F75
   -Dtests.slow=true -Dtests.locale=sr__#Latn
   -Dtests.timezone=Africa/Accra -Dtests.asserts=true
   -Dtests.file.encoding=US-ASCII

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

Reply via email to