drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deneche A. Hakim (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (DRILL-3445) BufferAllocator.buffer() implementations should throw an OutOfMemoryRuntimeException
Date Thu, 02 Jul 2015 15:08:04 GMT

    [ https://issues.apache.org/jira/browse/DRILL-3445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612050#comment-14612050
] 

Deneche A. Hakim edited comment on DRILL-3445 at 7/2/15 3:07 PM:
-----------------------------------------------------------------

Once this issue has been resolved "we" can work on DRILL-2974. I guess it could be part of
DRILL-3167 but it would be cleaner to fix each one separately. I will mark DRILL-2974 as depending
on this. Thx


was (Author: adeneche):
Once this issue has been resolved I will work on DRILL-2974. Thx

> BufferAllocator.buffer() implementations should throw an OutOfMemoryRuntimeException
> ------------------------------------------------------------------------------------
>
>                 Key: DRILL-3445
>                 URL: https://issues.apache.org/jira/browse/DRILL-3445
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Data Types, Execution - Relational Operators
>    Affects Versions: 1.0.0
>            Reporter: Deneche A. Hakim
>            Assignee: Hanifi Gunes
>             Fix For: 1.2.0
>
>         Attachments: DRILL-3445.1.patch.txt
>
>
> current implementations of BufferAllocator.buffer() return null if it can't allocate
the buffer because of direct memory or fragment limits., but many places in the code don't
actually check if the buffer is null before trying to access it, this will result in confusing
NullPointerException(s) when we are in fact running out of memory.
> We should change the implementations to throw an OutOfMemoryRuntimeException instead.
Drill already handles this exception properly in most cases and displays a proper error message
to the user.



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

Mime
View raw message