[Fix](hdfs-fs)The cache expiration should explicitly release the held fs#38610
Merged
CalvinKirs merged 4 commits intoapache:masterfrom Sep 6, 2024
Merged
[Fix](hdfs-fs)The cache expiration should explicitly release the held fs#38610CalvinKirs merged 4 commits intoapache:masterfrom
CalvinKirs merged 4 commits intoapache:masterfrom
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
Member
Author
|
run buildall |
TPC-H: Total hot run time: 42018 ms |
TPC-DS: Total hot run time: 170660 ms |
ClickBench: Total hot run time: 30.15 s |
Member
Author
|
run cloud_p1 |
Member
Author
|
run External |
3810637 to
d9e3536
Compare
Member
Author
|
run buildall |
TPC-H: Total hot run time: 41740 ms |
TPC-DS: Total hot run time: 169975 ms |
ClickBench: Total hot run time: 29.92 s |
Member
Author
|
run buildall |
TPC-H: Total hot run time: 41306 ms |
TPC-DS: Total hot run time: 170308 ms |
ClickBench: Total hot run time: 29.81 s |
Member
Author
|
run p0 |
Member
Author
|
run buildall |
1 similar comment
Member
Author
|
run buildall |
ClickBench: Total hot run time: 31.78 s |
Member
Author
|
run buildall |
TPC-H: Total hot run time: 38125 ms |
TPC-DS: Total hot run time: 186322 ms |
ClickBench: Total hot run time: 31.42 s |
Member
Author
|
run cloud_p0 |
2 similar comments
Member
Author
|
run cloud_p0 |
Member
Author
|
run cloud_p0 |
JNSimba
approved these changes
Sep 6, 2024
Member
Author
|
run cloud_p0 |
CalvinKirs
added a commit
to CalvinKirs/incubator-doris
that referenced
this pull request
Sep 7, 2024
… fs (apache#38610) ## Proposed changes The RemoteFSPhantomManager class is responsible for managing phantom references of RemoteFileSystem objects, ensuring that the associated FileSystem resources are automatically cleaned up when RemoteFileSystem objects are garbage collected. Key features: - Phantom Reference Monitoring: The class uses a ReferenceQueue and PhantomReference to track RemoteFileSystem objects. When these objects are no longer in use and garbage collected, the class ensures the corresponding FileSystem resources are properly closed to prevent resource leaks. - Thread-safe Cleanup: It provides a thread-safe mechanism to start a cleanup thread only once. This thread runs periodically, checking the ReferenceQueue and closing any unused FileSystem resources. Resource Management: The class maintains a map between phantom references and their corresponding FileSystem objects, ensuring that these resources are cleaned up appropriately. - The cleanup thread runs at regular intervals, ensuring that any RemoteFileSystem object that is no longer in use is safely removed along with its associated FileSystem resources. (cherry picked from commit 922ec3a)
xiaokang
pushed a commit
that referenced
this pull request
Sep 7, 2024
gavinchou
pushed a commit
that referenced
this pull request
Sep 12, 2024
… fs (#38610) ## Proposed changes The RemoteFSPhantomManager class is responsible for managing phantom references of RemoteFileSystem objects, ensuring that the associated FileSystem resources are automatically cleaned up when RemoteFileSystem objects are garbage collected. Key features: - Phantom Reference Monitoring: The class uses a ReferenceQueue and PhantomReference to track RemoteFileSystem objects. When these objects are no longer in use and garbage collected, the class ensures the corresponding FileSystem resources are properly closed to prevent resource leaks. - Thread-safe Cleanup: It provides a thread-safe mechanism to start a cleanup thread only once. This thread runs periodically, checking the ReferenceQueue and closing any unused FileSystem resources. Resource Management: The class maintains a map between phantom references and their corresponding FileSystem objects, ensuring that these resources are cleaned up appropriately. - The cleanup thread runs at regular intervals, ensuring that any RemoteFileSystem object that is no longer in use is safely removed along with its associated FileSystem resources.
CalvinKirs
added a commit
to CalvinKirs/incubator-doris
that referenced
this pull request
Sep 23, 2024
… fs (apache#38610) ## Proposed changes The RemoteFSPhantomManager class is responsible for managing phantom references of RemoteFileSystem objects, ensuring that the associated FileSystem resources are automatically cleaned up when RemoteFileSystem objects are garbage collected. Key features: - Phantom Reference Monitoring: The class uses a ReferenceQueue and PhantomReference to track RemoteFileSystem objects. When these objects are no longer in use and garbage collected, the class ensures the corresponding FileSystem resources are properly closed to prevent resource leaks. - Thread-safe Cleanup: It provides a thread-safe mechanism to start a cleanup thread only once. This thread runs periodically, checking the ReferenceQueue and closing any unused FileSystem resources. Resource Management: The class maintains a map between phantom references and their corresponding FileSystem objects, ensuring that these resources are cleaned up appropriately. - The cleanup thread runs at regular intervals, ensuring that any RemoteFileSystem object that is no longer in use is safely removed along with its associated FileSystem resources. (cherry picked from commit 922ec3a)
Closed
This file contains hidden or 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
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.
Proposed changes
The RemoteFSPhantomManager class is responsible for managing phantom references of RemoteFileSystem objects, ensuring that the associated FileSystem resources are automatically cleaned up when RemoteFileSystem objects are garbage collected.
Key features:
Resource Management: The class maintains a map between phantom references and their corresponding FileSystem objects, ensuring that these resources are cleaned up appropriately.