[fix](fe) modify tablet cooldownConfLock to reduce memory#59356
[fix](fe) modify tablet cooldownConfLock to reduce memory#59356dataroaring merged 1 commit intoapache:masterfrom
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
There was a problem hiding this comment.
Pull request overview
This PR optimizes memory usage in the Tablet class by replacing MonitoredReentrantReadWriteLock with a simple Object for the cooldownConfLock synchronization mechanism.
Key Changes:
- Replaced
MonitoredReentrantReadWriteLockwithObjectfor cooldownConfLock to reduce memory footprint - Converted write lock operations in
setCooldownConf()to use synchronized block - Converted read lock operations with try-finally in
getCooldownConf()to use synchronized block
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
run buildall |
TPC-H: Total hot run time: 34913 ms |
TPC-DS: Total hot run time: 180017 ms |
ClickBench: Total hot run time: 27.04 s |
FE UT Coverage ReportIncrement line coverage |
FE Regression Coverage ReportIncrement line coverage |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
### What problem does this PR solve? the usage of `cooldownConfLock` is simple, does not need ReentrantReadWriteLock because it cost too much memory, especially when a cluster has many tablets. before: <img width="1280" height="575" alt="1" src="https://github.com/user-attachments/assets/df626e1e-84ef-4078-8da7-d857ac960678" /> after: <img width="1280" height="510" alt="2" src="https://github.com/user-attachments/assets/3fee7407-0743-4d07-9462-a9f0e101765f" />
What problem does this PR solve?
the usage of
cooldownConfLockis simple, does not need ReentrantReadWriteLock because it cost too much memory, especially when a cluster has many tablets.before:

after:

Issue Number: close #xxx
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)