StarRocks / starrocks

The world's fastest open query engine for sub-second analytics both on and off the data lakehouse. With the flexibility to support nearly any scenario, StarRocks provides best-in-class performance for multi-dimensional analytics, real-time analytics, and ad-hoc queries. A Linux Foundation project.
https://starrocks.io
Apache License 2.0
9.17k stars 1.82k forks source link

[Refactor] Refactor DynamicPartitionScheduler to support list partition ttl scheduler later #53139

Open LiShuMing opened 3 days ago

LiShuMing commented 3 days ago

Why I'm doing:

What I'm doing:

Fixes https://github.com/StarRocks/starrocks/issues/53117

What type of PR is this:

Does this PR entail a change in behavior?

If yes, please specify the type of change:

Checklist:

Bugfix cherry-pick branch check:

sonarcloud[bot] commented 3 days ago

Quality Gate Passed Quality Gate passed

Issues
16 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

github-actions[bot] commented 22 hours ago

[Java-Extensions Incremental Coverage Report]

:white_check_mark: pass : 0 / 0 (0%)

github-actions[bot] commented 22 hours ago

[BE Incremental Coverage Report]

:white_check_mark: pass : 0 / 0 (0%)

github-actions[bot] commented 22 hours ago

[FE Incremental Coverage Report]

:white_check_mark: pass : 198 / 241 (82.16%)

file detail

path covered_line new_line coverage not_covered_line_detail
:large_blue_circle: com/starrocks/common/util/DynamicPartitionUtil.java 24 43 55.81% [453, 471, 472, 473, 474, 477, 478, 479, 480, 482, 484, 491, 493, 494, 504, 505, 506, 508, 516]
:large_blue_circle: com/starrocks/clone/DynamicPartitionScheduler.java 14 18 77.78% [219, 220, 382, 431]
:large_blue_circle: com/starrocks/clone/PartitionTTLScheduler.java 128 144 88.89% [131, 132, 146, 147, 148, 158, 179, 181, 182, 183, 195, 206, 210, 218, 232, 272]
:large_blue_circle: com/starrocks/clone/SchedulerRuntimeInfoCollector.java 32 36 88.89% [82, 83, 84, 85]