Actually there is one in 2 chances since `bits` is the result of `infoAndBits & 0x07`, so the only two out-of-range values that can be returned are 6 and 7. Does CheckIndex with the "-fast" option give any checksum error?
Le mer. 24 août 2016 à 05:24, Trejkaz <trej...@trypticon.org> a écrit : > Hi all. > > Someone apparently got this assertion failure on one of their indexes > which they had been storing on a network drive for some stupid reason: > > AssertionError: Unknown type flag: 6 at > > org.apache.lucene.codecs.compressing.CompressingStoredFieldsReader.readField(CompressingStoredFieldsReader.java:237) > > The valid values: > > static final int STRING = 0x00; > static final int BYTE_ARR = 0x01; > static final int NUMERIC_INT = 0x02; > static final int NUMERIC_FLOAT = 0x03; > static final int NUMERIC_LONG = 0x04; > static final int NUMERIC_DOUBLE = 0x05; > > It seems a bit too coincidental that a 0x06 has appeared, but could > this just be a 1 in 256 chance? Or is there some way 0x06 could have > ended up there? > > As usual, no reproduction has been given to us. > > TX > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >