deardeng opened a new pull request, #66451:
URL: https://github.com/apache/doris/pull/66451
Related PR: #66378, #66389
Problem Summary: Cloud tablet route rebuilding retains the current and
future table-level and partition-level scheduling indexes for the entire sleep
interval after each balancing round, although later status checks and external
readers only need the global indexes. At 4 million tablets across 4 clusters, a
single-threaded JDK 17 path-level model estimates that releasing these four
nested graphs reduces approximate post-full-GC retained route-index heap from
4.66 GiB to 1.35 GiB, a 3.31 GiB or 70.96% reduction. Cumulative route-index
construction allocation remains 7.36 GiB, so this change reduces between-round
retention rather than allocation volume or in-round peak memory. Replace the
four top-level maps in a finally block after balancing so all exit paths
release the old graphs without an O(N) clear traversal, while preserving
current and future global routes. The next route-statistics pass rebuilds the
scheduling indexes before they are used again. These numbers are model esti
mates, not production RSS measurements.
### Release note
None
### Check List (For Author)
- Test: Unit Test
- ./run-fe-ut.sh --run
org.apache.doris.cloud.catalog.CloudTabletRebalancerTest (16 tests passed)
- mvn checkstyle:check -pl fe-core (0 violations)
- Behavior changed: No
- Does this need documentation: No
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [x] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [x] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [x] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]