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: include dropped databases in cluster backups with rev history #65314

Merged
merged 2 commits into from
May 17, 2021

Conversation

pbardea
Copy link
Contributor

@pbardea pbardea commented May 17, 2021

Backport 2/2 commits from #63176.

/cc @cockroachdb/release


Previously, cluster backups taken with revision_history would not
include a database descriptor if it was dropped at the time of the
backup. This patch ensures that these database descriptors are picked up
by the backup and can therefore be restored with an AOST restore.

This bug appeared because backup incorrectly assumed that dropped
descriptors remained in the DROP state until their GC TTL. This is not
the case for database descriptors which are immediately deleted.

Release note (bug fix): Previously revision_history cluster backups
would not include dropped databases. This means that dropped databases
could not be restored from backups that were taken after the database
was dropped.

Previously, cluster backups taken with revision_history would not
include a database descriptor if it was dropped at the time of the
backup. This patch ensures that these database descriptors are picked up
by the backup and can therefore be restored with an AOST restore.

This bug appeared because backup incorrectly assumed that dropped
descriptors remained in the DROP state until their GC TTL. This is not
the case for database descriptors which are immedately deleted.

Release note (bug fix): Previously revision_history cluster backups
would not include dropped databases. This means that dropped databases
could not be restored from backups that were taken after the database
was dropped.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@pbardea pbardea requested a review from dt May 17, 2021 14:24
@pbardea pbardea marked this pull request as ready for review May 17, 2021 14:24
@pbardea pbardea requested a review from a team May 17, 2021 14:24
@pbardea pbardea merged commit 28a6b72 into cockroachdb:release-21.1 May 17, 2021
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.

3 participants