Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-1084

Implementations of BufferAllocator should handle Netty's OutOfDirectMemoryError

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.1
    • Component/s: Java
    • Labels:
      None

      Description

      Implementations of BufferAllocator.buffer(...) are expected to throw an OutOfMemoryException if the buffer cannot be allocated. There are multiple reasons for that:

      • allocator exceeded it's memory limit
      • Netty exceeded it's direct memory limit
      • the System is unable to fulfill Netty's request for more direct memory

      For now only the first case throws an OutOfMemoryException. The second throws an OutOfDirectMemoryError, and the third an OutOfMemoryError with the "Direct buffer memory" error message.

        Attachments

          Activity

            People

            • Assignee:
              adeneche Deneche A. Hakim
              Reporter:
              adeneche Deneche A. Hakim
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: