Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-2627

MMapDirectory chunking is buggy

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.9.4, 3.0.3, 3.1, 4.0-ALPHA
    • core/store
    • None
    • New

    Description

      MMapDirectory uses chunking with MultiMMapIndexInput.

      Because Java's ByteBuffer uses an int to address the
      values, it's necessary to access a file >
      Integer.MAX_VALUE in size using multiple byte buffers.

      But i noticed from the clover report the entire MultiMMapIndexInput class is completely untested: no surprise since all tests make tiny indexes.

      Attachments

        1. LUCENE-2627.patch
          4 kB
          Robert Muir
        2. LUCENE-2627_test.patch
          4 kB
          Robert Muir

        Activity

          People

            rcmuir Robert Muir
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: