Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-671

Lucene Directory doesn't appropriately throw an IOException in case read-past-eof happens at chunk size switch

XMLWordPrintable

      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.

              sgrinove Sanne Grinovero (Inactive)
              sgrinove Sanne Grinovero (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: