-
Notifications
You must be signed in to change notification settings - Fork 458
[lake/lance] add Flink memory usage note #1909
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
Conversation
|
|
||
| > **NOTE**: Fluss v0.8 only supports tiering log tables to Lance. | ||
| > **NOTE**: The Lance connector leverages Arrow Java library, which operates on off-heap memory. To prevent `java.lang.OutOfMemoryError: Direct buffer memory` error in Flink Task Manager, please increase the value of `taskmanager.memory.task.off-heap.size` in `<FLINK_HOME>/conf/config.yaml` to an appropriate size. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the appropriate size? Any suggestion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated this to a more concrete suggestion.
|
|
||
| > **NOTE**: Fluss v0.8 only supports tiering log tables to Lance. | ||
| > **NOTE**: The Lance connector leverages Arrow Java library, which operates on off-heap memory. To prevent `java.lang.OutOfMemoryError: Direct buffer memory` error in Flink Task Manager, please increase the value of `taskmanager.memory.task.off-heap.size` in `<FLINK_HOME>/conf/config.yaml` to an appropriate size. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the appropriate size? Any suggestion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a documentation note about configuring off-heap memory for the Lance connector to prevent OutOfMemoryError issues in Flink Task Manager.
- Adds a new NOTE section explaining the Arrow Java library's off-heap memory requirements
- Provides guidance on configuring
taskmanager.memory.task.off-heap.sizeto avoid memory errors
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
luoyuxia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
(cherry picked from commit 613d354)
Purpose
Linked issue: close #xxx
reference:
https://arrow.apache.org/docs/java/memory.html#why-arrow-uses-direct-memory
Brief change log
Tests
API and Format
Documentation