[
https://issues.apache.org/jira/browse/ARROW-3061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17660086#comment-17660086
]
Rok Mihevc commented on ARROW-3061:
-----------------------------------
This issue has been migrated to [issue
#19419|https://github.com/apache/arrow/issues/19419] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [Java] headroom does not take into account reservation
> ------------------------------------------------------
>
> Key: ARROW-3061
> URL: https://issues.apache.org/jira/browse/ARROW-3061
> Project: Apache Arrow
> Issue Type: Bug
> Components: Java
> Reporter: Laurent Goujon
> Assignee: Laurent Goujon
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.11.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> It looks like {{BufferAllocator#getHeadroom()}} does not take into account
> current allocator reservation. For example if a parent allocator has a limit
> of 10, and a child allocator is created with a reservation of 6, the headroom
> of the parent is 4, and the current headroom will report 4, but the actual
> headroom is 10 because the child has no memory used and so can use the full
> extend of its reservation on top of what the parent allocator can allocate
--
This message was sent by Atlassian Jira
(v8.20.10#820010)