-
Bug
-
Resolution: Done
-
Major
-
4.1.0.Final, 4.2.0.ALPHA2
-
None
Lucene can occasionally try to read past end of the stream, we are supposed to throw an IOException in this cases, but if at the same time the cursor points to an end-of-chunk the IndexOutput will have created a zero-filled byte array, from which the first element is returned instead.
Adding tests to make sure the exception handling of these cases matches that of Lucene.