[
https://issues.apache.org/jira/browse/LUCENE-7080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15186868#comment-15186868
]
Michael McCandless commented on LUCENE-7080:
--------------------------------------------
+1
This was causing hilarious ES test failures, like:
{noformat}
java.lang.IllegalArgumentException: An SPI class of type
org.apache.lucene.codecs.Codec with name 'Asseruing' does not exist. You need
to add the corresponding JAR file supporting this SPI to your classpath. The
current classpath supports the following names: [Lucene60, Lucene50, Lucene53,
Lucene54, Asserting, CheapBastard, FastCompressingStoredFields,
FastDecompressionCompressingStoredFields,
HighCompressionCompressingStoredFields, DummyCompressingStoredFields,
SimpleText]
at
__randomizedtesting.SeedInfo.seed([F5C8F2C1D5BDBA14:48F62EB91B77A0CA]:0)
at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:116)
at org.apache.lucene.codecs.Codec.forName(Codec.java:116)
at org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:417)
at
org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:349)
at
org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:284)
at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:507)
at org.apache.lucene.util.TestUtil.checkIndex(TestUtil.java:300)
at
org.apache.lucene.store.MockDirectoryWrapper.close(MockDirectoryWrapper.java:848)
{noformat}
Another time it failed with {{AsserTing}}, then {{Assertkng}} ;)
> MockDirectoryWrapper relies on HashSet iteration order
> ------------------------------------------------------
>
> Key: LUCENE-7080
> URL: https://issues.apache.org/jira/browse/LUCENE-7080
> Project: Lucene - Core
> Issue Type: Bug
> Components: general/test
> Affects Versions: 5.5, 6.0
> Reporter: Simon Willnauer
> Assignee: Simon Willnauer
> Attachments: LUCENE-7080.patch
>
>
> MDW relies on HashSet iteration order in
> {code}
> public synchronized void corruptFiles(Collection<String> files) throws
> IOException {
> // Must make a copy because we change the incoming unsyncedFiles
> // when we create temp files, delete, etc., below:
> for(String name : new ArrayList<>(files)) { // <<<<< this should be sorted
> int damage = randomState.nextInt(6);
> {code}
> this causes reproducibility issues when files get corrupted.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]