Skip to content
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

br: add more fields for merged backup SST #1282

Merged
merged 11 commits into from
Dec 18, 2024

Conversation

Leavrth
Copy link
Contributor

@Leavrth Leavrth commented Dec 5, 2024

No description provided.

@ti-chi-bot ti-chi-bot bot requested review from mornyx and Rustin170506 December 5, 2024 06:52
@ti-chi-bot ti-chi-bot bot added the size/XXL label Dec 5, 2024
@@ -147,6 +147,15 @@ message BackupRange {
repeated File files = 3;
}

// The message saves the physical table checksum
message TableMeta {
Copy link
Contributor

@Tristan1900 Tristan1900 Dec 16, 2024

Choose a reason for hiding this comment

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

feels like the name could be TableChecksum unless if you want to add more fields in the future?

Copy link
Contributor Author

@Leavrth Leavrth Dec 17, 2024

Choose a reason for hiding this comment

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

Actually I named it TableChecksum at first, but now I prefer to named it TableMeta. That's because TableMeta is also used to mark the real kvs in the SST file.

  1. If we have backed up an SST file like this:
    [ table0:[kv1, kv2, ...], table1:[kv1, kv2, ...], ... ]
    However, another SST file is backed up and is overlapped with the above SST file.
    [ table1:[kv1, kv2, ...], ... ]
    Therefore, BR remove the TableMeta::table1 in the first SST file metafile and now TableMeta shows which kvs in the SST file is actually valid.
  2. When BR filters out some tables, BR also removes these TableMetas to mark the skipped kvs.

So in summary, TableMeta does not only used for checksum.

Copy link
Contributor

Choose a reason for hiding this comment

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

got it, makes sense, thanks for the clarification.

@ti-chi-bot ti-chi-bot bot removed the lgtm label Dec 18, 2024
Copy link

ti-chi-bot bot commented Dec 18, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-12-18 06:29:48.948935292 +0000 UTC m=+1024779.037737833: ☑️ agreed by YuJuncen.
  • 2024-12-18 06:57:25.642676571 +0000 UTC m=+1026435.731479114: ☑️ agreed by BornChanger.
  • 2024-12-18 07:07:12.93472827 +0000 UTC m=+1027023.023530798: ✖️🔁 reset by Leavrth.
  • 2024-12-18 07:10:04.383601498 +0000 UTC m=+1027194.472404041: ☑️ agreed by BornChanger.
  • 2024-12-18 07:19:00.427310114 +0000 UTC m=+1027730.516112657: ☑️ agreed by YuJuncen.

Copy link

ti-chi-bot bot commented Dec 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BornChanger, YuJuncen

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot merged commit e8eeb94 into pingcap:master Dec 18, 2024
5 checks passed
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