[Java] AllocationListener should be called during ownership transferring
- Dominant language
- Java
- Stars
- 94
- Forks
- 152
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 11
Description
If we transfer balance of buffer1 from allocator1 to allocator2, onRelease() should be called from allocator1.listener as well as the case that buffer1 is closed without transferring.
**Reporter**: [Hongze Zhang](https://issues.apache.org/jira/browse/ARROW-14923) / @zhztheplayer
#### PRs and other links:
- [GitHub Pull Request apache/arrow#11800](https://github.com/apache/arrow/pull/11800)
**Note**: *This issue was originally created as [ARROW-14923](https://issues.apache.org/jira/browse/ARROW-14923). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
Contributor guide
Research direction
Review the allocation and ownership-transfer implementation, then inspect PR #11800 for the existing work. Done means allocator1.listener receives onRelease() when buffer1 ownership transfers to allocator2, as it already does when buffer1 is closed without transferring.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100