Skip to content

backupccl: checksum backup manifest#53298

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
pbardea:checksum-manifest
Aug 24, 2020
Merged

backupccl: checksum backup manifest#53298
craig[bot] merged 1 commit intocockroachdb:masterfrom
pbardea:checksum-manifest

Conversation

@pbardea
Copy link
Copy Markdown
Contributor

@pbardea pbardea commented Aug 23, 2020

This commit checksums that backup manifest when it is written. This
helps detect issues such as random bitflips of the manifest file.

When writing a backup manifest, it will also write the checksum of that
file to a file with a "-CHECKSUM" suffix appended to the manifest file
name. When reading manifests, we check for the '...-CHECKSUM' file,
and if one is present, we compare the checksums. If there isn't one
present, we will continue as we did before. This allows backwards
compatibility with old backups.

Fixes #52061.

Release note: None

This commit checksums that backup manifest when it is written. This
helps detect issues such as random bitflips of the manifest data.

When writing a backup manifest, it will also write the checksum of that
file to a file with a "-CHECKSUM" suffix appended to the manifest file
name. The checksum is keyed on the encryption key if the backup is
encrypted. When reading manifests, we check for the '...-CHECKSUM' file,
and if one is present, we compare the checksums. If there isn't one
present, we will continue as we did before. This allows backwards
compatibility with old backups.

Release note: None
@pbardea pbardea requested review from a team and dt August 23, 2020 22:37
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@pbardea
Copy link
Copy Markdown
Contributor Author

pbardea commented Aug 24, 2020

TFTR!
bors r=dt

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 24, 2020

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 24, 2020

Build succeeded:

@craig craig bot merged commit 83c9e34 into cockroachdb:master Aug 24, 2020
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.

backupccl: checksum the backup manifest

3 participants