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

added versioning for migration #1280

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

YuJuncen
Copy link
Contributor

This PR added the vesrion and creator field to the Migration type for troubleshoting.

Signed-off-by: hillium <[email protected]>
@ti-chi-bot ti-chi-bot bot requested a review from TszKitLo40 November 19, 2024 09:41
@ti-chi-bot ti-chi-bot bot added the size/XXL label Nov 19, 2024
Copy link
Contributor

@Tristan1900 Tristan1900 left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -876,7 +876,17 @@ message DeleteSpansOfFile {
uint64 whole_file_length = 3;
}

enum MigrationVersion {
// The initial version. Somehow "UNKNOWN".
M0 = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit, maybe V0 and V1? usually use V as version,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

protocol buffer requires the enum name is unique among all enums in the same package. The variant V1 was used by MetaFileVersion...

message Migration {
string creator = 5;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit, maybe sort in the numeric order, put them to the end of the message.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the version and creator field should be more primitive and essential than other fields. So I put them in the first line and people may notice them easier.

Copy link

ti-chi-bot bot commented Nov 19, 2024

@Tristan1900: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

LGTM!

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link

ti-chi-bot bot commented Nov 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 3pointer, BornChanger, Tristan1900

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

Copy link

ti-chi-bot bot commented Nov 20, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-11-19 10:04:32.353573336 +0000 UTC m=+955434.544442326: ☑️ agreed by BornChanger.
  • 2024-11-20 02:18:26.533972818 +0000 UTC m=+1013868.724841815: ☑️ agreed by 3pointer.

@ti-chi-bot ti-chi-bot bot merged commit 92b0414 into pingcap:master Nov 20, 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