-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[Fix](Iceberg)Fix HDFS FileSystem Leak Caused by Frequent Refresh of Iceberg Catalog #45956
Closed
CalvinKirs
wants to merge
3
commits into
apache:master
from
CalvinKirs:master-fix-iceberg-memory-lake
Closed
[Fix](Iceberg)Fix HDFS FileSystem Leak Caused by Frequent Refresh of Iceberg Catalog #45956
CalvinKirs
wants to merge
3
commits into
apache:master
from
CalvinKirs:master-fix-iceberg-memory-lake
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
run buildall |
TPC-H: Total hot run time: 32388 ms
|
TPC-DS: Total hot run time: 191135 ms
|
ClickBench: Total hot run time: 31.88 s
|
run P0 |
run buildall |
1 similar comment
run buildall |
TPC-H: Total hot run time: 32859 ms
|
TPC-DS: Total hot run time: 196901 ms
|
ClickBench: Total hot run time: 31.57 s
|
run buildall |
TPC-H: Total hot run time: 33249 ms
|
TPC-DS: Total hot run time: 197044 ms
|
ClickBench: Total hot run time: 31.82 s
|
…Iceberg Catalog ### Background When using an HMS-based Iceberg Catalog, refreshing the Catalog frequently creates new HadoopAuthenticator instances. This leads to the following issues: #### Frequent FileSystem Creation: Iceberg uses Path.getFileSystem(Configuration) to obtain a FileSystem instance. Even though the Configuration remains unchanged, changes in the UserGroupInformation (UGI) cause new FileSystem instances to be created. #### Resource Leakage: Newly created FileSystem instances are not released, leading to increased resource consumption over time. #### Root Cause Each Catalog refresh creates a new HadoopAuthenticator instance. Changes in the UGI contained in HadoopAuthenticator lead to the creation of new FileSystem instances, even when the Configuration is the same.
CalvinKirs
force-pushed
the
master-fix-iceberg-memory-lake
branch
from
December 26, 2024 07:20
23a2723
to
b7f2092
Compare
run buildall |
TPC-H: Total hot run time: 32238 ms
|
TPC-DS: Total hot run time: 190423 ms
|
ClickBench: Total hot run time: 31.59 s
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
When using an HMS-based Iceberg Catalog, refreshing the Catalog frequently creates new HadoopAuthenticator instances. This leads to the following issues:
Frequent FileSystem Creation:
Iceberg uses Path.getFileSystem(Configuration) to obtain a FileSystem instance. Even though the Configuration remains unchanged, changes in the UserGroupInformation (UGI) cause new FileSystem instances to be created.
Resource Leakage:
Root Cause
Each Catalog refresh creates a new HadoopAuthenticator instance. Changes in the UGI contained in HadoopAuthenticator lead to the creation of new FileSystem instances, even when the Configuration is the same.
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)