Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add allocation source to StreamReader #332

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

viirya
Copy link
Member

@viirya viirya commented Apr 26, 2024

Which issue does this PR close?

Closes #.

Rationale for this change

There is a memory leak reported by Java Arrow in #324. When looking at the error message for debugging:

Memory was leaked by query. Memory leaked: (49152)
Allocator(ROOT) 0/49152/180352/9223372036854775807 (res/actual/peak/limit)

I figured that it is hard to know where the allocation comes from. In this PR, I added the source of allocators.

The error message is updated to:

Memory was leaked by query. Memory leaked: (49152)                                                                                                                                                                                     
Allocator(StreamReader/shuffle reader) 0/49152/180352/9223372036854775807 (res/actual/peak/limit)                                                                                                                                      

What changes are included in this PR?

How are these changes tested?

@viirya
Copy link
Member Author

viirya commented Apr 26, 2024

cc @andygrove @sunchao @comphead

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm thanks @viirya

@viirya viirya merged commit 897dde7 into apache:main Apr 26, 2024
28 checks passed
@viirya
Copy link
Member Author

viirya commented Apr 26, 2024

Merged. Thanks.

@viirya viirya deleted the add_root_source branch April 26, 2024 21:55
himadripal pushed a commit to himadripal/datafusion-comet that referenced this pull request Sep 7, 2024
* chore: Add allocation source to StreamReader

* Use simple name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants