Uh oh!
There was an error while loading. Please reload this page.
[fix](fe) modify tablet cooldownConfLock to reduce memory - #59356
Conversation
Thearas
commented
Dec 25, 2025
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.
Uh oh!
There was an error while loading. Please reload this page.
mymeiyi
commented
Dec 25, 2025
run buildall |
doris-robot
commented
Dec 25, 2025
TPC-H: Total hot run time: 34913 ms |
doris-robot
commented
Dec 25, 2025
TPC-DS: Total hot run time: 180017 ms |
doris-robot
commented
Dec 25, 2025
ClickBench: Total hot run time: 27.04 s |
hello-stephen
commented
Dec 25, 2025
FE UT Coverage ReportIncrement line coverage |
hello-stephen
commented
Dec 25, 2025
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. |
Uh oh!
There was an error while loading. Please reload this page.
### 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" />
…pache#59356 (apache#59499) Cherry-picked from apache#59356 Co-authored-by: meiyi <meiyi@selectdb.com>
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)