IllegalStateException: Memory leaked when closing RootAllocator

Open
#776 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
backend

Research direction

Start by running the minimal reproducer in the linked liweiyuan/arrow-interop project and compare its behavior with error.log. Trace which allocation remains when RootAllocator is closed; done means the reproducer no longer reports "Memory was leaked by query" or throws IllegalStateException during allocator shutdown.

Written by the indexing model from the issue text.

Description

Type: bug
Describe the bug, including details regarding any error messages, version, and platform.

I am encountering an IllegalStateException with the message "Memory was leaked by query" when closing a RootAllocator. This indicates that some memory allocated from the allocator was not released before the allocator was closed.

error.log

A minimal project that reproduces this issue can be found here:
github

Dominant language
Java
Stars
95
Forks
154
Avg merge
2d 10h
Merged PRs (30d)
11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/arrow-java

All issues in apache/arrow-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.