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

BufferAllocator.buffer() implementations should throw an OutOfMemoryRuntimeException

    XMLWordPrintableJSON

Details

    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

        1. DRILL-3445.1.patch.txt
          21 kB
          Abdel Hakim Deneche

        Issue Links

          Activity

            People

              adeneche Abdel Hakim Deneche
              adeneche Abdel Hakim Deneche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: