8000 [Refactor] rename aggregate/shared prefix to bundle by luohaha · Pull Request #60057 · StarRocks/starrocks · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Refactor] rename aggregate/shared prefix to bundle #60057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 19, 2025

Conversation

luohaha
Copy link
Contributor
@luohaha luohaha commented Jun 19, 2025

Why I'm doing:

In #58923 , we support file bundling for tablet meta, txnlog and segment files. The configuration to enable this optimization is defined as file_bundling, so variables and functions that previously used aggregate or shared as name prefixes in some places need to be changed to bundle to ensure consistency.

What I'm doing:

This pull request introduces a significant refactor across multiple files to replace the concept of "aggregate tablet metadata" with "bundle tablet metadata." The changes update method names, variable names, and associated logic throughout the codebase to align with the new terminology, ensuring consistency and improving clarity. Additionally, test cases have been updated to reflect this change.

Core Changes to Metadata Management:

Updates to Metadata Location Logic:

Adjustments to Schema Change Handling:

Test Updates:

Miscellaneous Updates:

These changes ensure the codebase aligns with the updated metadata concept, improving clarity and maintainability.

What type of PR is this:

  • BugFix
  • Feature
  • Enhancement
  • Refactor
  • UT
  • Doc
  • Tool

Does this PR entail a change in behavior?

  • Yes, this PR will result in a change in behavior.
  • No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

  • Interface/UI changes: syntax, type conversion, expression evaluation, display information
  • Parameter changes: default values, similar parameters but with different default values
  • Policy changes: use new policy to replace old one, functionality automatically enabled
  • Feature removed
  • Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

  • I have added test cases for my bug fix or my new feature
  • This pr needs user documentation (for new or modified features or behaviors)
    • I have added documentation for my new feature or new function
  • This is a backport pr

Bugfix cherry-pick branch check:

  • I have checked the version labels which the pr will be auto-backported to the target branch
    • 3.5
    • 3.4
    • 3.3

@luohaha luohaha requested a review from a team as a code owner June 19, 2025 05:59
@wanpengfei-git wanpengfei-git requested a review from a team June 19, 2025 05:59
Signed-off-by: luohaha <18810541851@163.com>
@luohaha luohaha force-pushed the refactor-aggregate-to-bundle branch from ffb34c1 to 603817b Compare June 19, 2025 06:05
Signed-off-by: luohaha <18810541851@163.com>
Copy link

Copy link
Contributor
@wyb wyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backport proto to 3.5 for roll back to old version

@luohaha luohaha enabled auto-merge (squash) June 19, 2025 08:18
Copy link

[Java-Extensions Incremental Coverage Report]

pass : 0 / 0 (0%)

Copy link

[FE Incremental Coverage Report]

pass : 1 / 1 (100.00%)

file detail

path covered_line new_line coverage not_covered_line_detail
🔵 com/starrocks/task/TabletMetadataUpdateAgentTaskFactory.java 1 1 100.00% []

@luohaha luohaha merged commit 3273d9a into StarRocks:main Jun 19, 2025
75 of 78 checks passed
Copy link

[BE Incremental Coverage Report]

pass : 30 / 33 (90.91%)

file detail

path covered_line new_line coverage not_covered_line_detail
🔵 be/src/service/service_be/lake_service.cpp 1 2 50.00% [346]
🔵 be/src/storage/lake/tablet_manager.cpp 25 27 92.59% [496, 497]
🔵 be/src/storage/lake/txn_log_applier.cpp 1 1 100.00% []
🔵 be/src/storage/lake/schema_change.cpp 2 2 100.00% []
🔵 be/src/storage/lake/location_provider.h 1 1 100.00% []

AntiTopQuark pushed a commit to AntiTopQuark/starrocks that referenced this pull request Jun 19, 2025
Signed-off-by: luohaha <18810541851@163.com>
Signed-off-by: AntiTopQuark <AntiTopQuark1350@outlook.com>
dengliu pushed a commit to dengliu/starrocks that referenced this pull request Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0