[
https://issues.apache.org/jira/browse/HIVE-21689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16832949#comment-16832949
]
slim bouguerra commented on HIVE-21689:
---------------------------------------
UT can be found here.
https://gist.github.com/b-slim/f12aad2a2406d9ee15f338e0e760d3a5
> Buddy Allocator memory accounting does not account for failed allocation
> attempts
> ---------------------------------------------------------------------------------
>
> Key: HIVE-21689
> URL: https://issues.apache.org/jira/browse/HIVE-21689
> Project: Hive
> Issue Type: Bug
> Components: llap
> Reporter: slim bouguerra
> Assignee: slim bouguerra
> Priority: Major
>
> Allocation method on Buddy Allocator, does not release the reserved memory in
> case we failed to allocate the full sequence.
> Simple example:
> Assume We have an allocation request of 1kb.
> Will call reserver and reserve 1KB.
> Try to allocate will fail due to race condition.
> Try to discard will fail due to no space.
> At this point will exit without releasing the reserved memory.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)