You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Mehant Baid (JIRA)" <ji...@apache.org> on 2015/01/27 04:13:35 UTC
[jira] [Created] (DRILL-2079) Index out of bounds exception while
performing external sort
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)