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

release-21.1: backupccl: prevent restoring a newer backup #62398

Merged
merged 1 commit into from
Apr 8, 2021

Conversation

dt
Copy link
Member

@dt dt commented Mar 22, 2021

Backport 1/1 commits from #61737.

/cc @cockroachdb/release


This adds a check during RESTORE that the backup(s) being restored were produced by a version
no newer than the current version. The build info for the version that produced a
backup is persisted in the manifest and is used for this check.

Release note (ops change): RESTORE now refuses to restore BACKUPs made by newer versions.

This adds a check during RESTORE that the backup(s) being restored were
produced by a cluster with a cluster version no newer than the current
version. The cluster version was not previously persisted in the backup
so this new field is only set on new backups, but as this check is only
in new versions, that is fine.

Release note (ops change): RESTORE now refuses to restore BACKUPs made by newer versions.
@dt dt requested review from pbardea, ajwerner and a team March 22, 2021 22:47
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

Note: this is checking the build version, not the cluster version

My reading of Active version does not align with this. Am I missing something?

Reviewed 2 of 5 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @dt)

@dt
Copy link
Member Author

dt commented Apr 8, 2021

@ajwerner the msg was just out-of-date. in the pr discussion we changed our mind and used ClusterVersion instead.

@dt
Copy link
Member Author

dt commented Apr 8, 2021

TFTR!

@dt dt merged commit 0882392 into cockroachdb:release-21.1 Apr 8, 2021
@dt dt deleted the backport21.1-61737 branch April 8, 2021 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants