Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.0
-
None
Description
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.
Attachments
Attachments
Issue Links
- contains
-
DRILL-3312 PageReader.allocatePageData() calls BufferAllocator.buffer(int) but doesn't check if the result is null
- Closed
- duplicates
-
DRILL-3312 PageReader.allocatePageData() calls BufferAllocator.buffer(int) but doesn't check if the result is null
- Closed
- is depended upon by
-
DRILL-2974 Make OutOfMemoryException an unchecked exception and remove OutOfMemoryRuntimeException
- Resolved
- is related to
-
DRILL-2974 Make OutOfMemoryException an unchecked exception and remove OutOfMemoryRuntimeException
- Resolved