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

Details

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: