Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

backupmeta: add cluster_version and br_version info in backupmeta #734

Merged
merged 19 commits into from
Mar 4, 2021

Conversation

lichunzhu
Copy link
Contributor

@lichunzhu lichunzhu commented Feb 4, 2021

What problem does this PR solve?

#698

What is changed and how it works?

add cluster_version and br_version info in backupmeta when we backup data.

Check List

Tests

  • Unit test
  • Integration test

Code changes

  • Has exported function/method change
  • Has persistent data change

Related changes

  • Need to cherry-pick to the release branch

Release Note

  • add cluster_version and br_version info in backupmeta

@lichunzhu
Copy link
Contributor Author

/run-all-tests

@lichunzhu lichunzhu marked this pull request as ready for review February 24, 2021 03:16
@kennytm
Copy link
Collaborator

kennytm commented Feb 24, 2021

/lgtm

@ti-srebot ti-srebot added the status/LGT1 LGTM1 label Feb 24, 2021
Comment on lines +194 to +196
backupMeta.ClusterId = req.ClusterId
backupMeta.ClusterVersion = clusterVersion
backupMeta.BrVersion = brVersion
Copy link
Member

Choose a reason for hiding this comment

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

Please add a unit test to tests if these three fields are set correctly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed in 7b4365c

Copy link
Member

@overvenus overvenus left a comment

Choose a reason for hiding this comment

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

Rest LGTM

Comment on lines +60 to +62
func (Glue) GetVersion() string {
return "BR\n" + utils.BRInfo()
}
Copy link
Member

Choose a reason for hiding this comment

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

Please add a unit test to make sure the version matches a certain pattern.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed in 7b4365c

pkg/glue/glue.go Outdated Show resolved Hide resolved
@overvenus
Copy link
Member

LGTM

@ti-srebot ti-srebot added status/LGT2 LGTM2 and removed status/LGT1 LGTM1 labels Mar 4, 2021
@lichunzhu
Copy link
Contributor Author

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit a0018ea into pingcap:master Mar 4, 2021
ti-srebot pushed a commit to ti-srebot/br that referenced this pull request Mar 4, 2021
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #803

@lichunzhu lichunzhu deleted the addVersions branch March 4, 2021 09:21
ti-srebot pushed a commit to ti-srebot/br that referenced this pull request Mar 4, 2021
@ti-srebot
Copy link
Contributor

cherry pick to release-5.0-rc in PR #804

overvenus pushed a commit that referenced this pull request Mar 10, 2021
…) (#803)

* cherry pick #734 to release-4.0

Signed-off-by: ti-srebot <[email protected]>

* update kvproto tidb dependencies

Co-authored-by: Chunzhu Li <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants