mad commented on code in PR #11900:
URL: https://github.com/apache/lucene/pull/11900#discussion_r2686471790
##########
lucene/codecs/src/java/org/apache/lucene/codecs/bloom/FuzzySet.java:
##########
@@ -46,7 +46,9 @@ public class FuzzySet implements Accountable {
public static final int VERSION_SPI = 1; // HashFunction used to be loaded
through a SPI
public static final int VERSION_START = VERSION_SPI;
- public static final int VERSION_CURRENT = 2;
+ public static final int VERSION_MURMUR2 = 2;
+ private static final int VERSION_MULTI_HASH = 3;
+ public static final int VERSION_CURRENT = VERSION_MULTI_HASH;
Review Comment:
@jpountz Please tell me what can be done for backward compatibility?
The index from version 8 does not open in version 9
```
Caused by: java.io.EOFException: read past EOF:
ByteBufferIndexInput(path="/tmp/index/_2u_BloomFilter_0.blm")
at
org.apache.lucene.store.ByteBufferIndexInput.readByte(ByteBufferIndexInput.java:130)
at
org.apache.lucene.store.BufferedChecksumIndexInput.readByte(BufferedChecksumIndexInput.java:39)
at org.apache.lucene.store.DataInput.readInt(DataInput.java:98)
at org.apache.lucene.store.DataInput.readLong(DataInput.java:184)
at
org.apache.lucene.codecs.bloom.FuzzySet.deserialize(FuzzySet.java:200)
at
org.apache.lucene.codecs.bloom.BloomFilteringPostingsFormat$BloomFilteredFieldsProducer.<init>(BloomFilteringPostingsFormat.java:172)
at
org.apache.lucene.codecs.bloom.BloomFilteringPostingsFormat.fieldsProducer(BloomFilteringPostingsFormat.java:140)
at
org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(PerFieldPostingsFormat.java:328)
```
Is it possible to automatically remove an unsupported codec?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]