Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-2079

Index out of bounds exception while performing external sort

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.8.0
    • None
    • None

    Description

      With a data set large enough to cause the external sort to spill we hit index out of bounds exception when we have a fixed width vector in the record batch. With the recent automatic memory reallocation fix (DRILL-1960) we moved to allocating memory for fixed width vectors with target record counts (instead of allocateNewSafe). However in PriorityQueueCopierTemplate we still use the old interface and since we don't use copyFromSafe() anymore we hit IOOB since the vector is not sized as expected. Fix is simply to use AllocationHelper so that we allocate the exact memory required by fixed width vectors.

      Attachments

        1. DRILL-2079.patch
          2 kB
          Mehant Baid

        Activity

          People

            mehant Mehant Baid
            mehant Mehant Baid
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: