drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mehant Baid (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-2079) Index out of bounds exception while performing external sort
Date Tue, 27 Jan 2015 03:13:35 GMT
Mehant Baid created DRILL-2079:
----------------------------------

             Summary: Index out of bounds exception while performing external sort
                 Key: DRILL-2079
                 URL: https://issues.apache.org/jira/browse/DRILL-2079
             Project: Apache Drill
          Issue Type: Bug
            Reporter: Mehant Baid
            Assignee: Mehant Baid
             Fix For: 0.8.0


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message