backupccl: fingerprint mismatch on some 22.2 releases #105900
Labels
A-disaster-recovery
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-disaster-recovery
Restoring certain backups in certain 22.2 releases might lead to mismatched fingerprints, i.e., the fingerprint of a table after restoring is different from the fingerprints of the table at the time the backup was taken.
Take the cluster backup in
gs://cockroach-tmp/backup_issue_22_2_fingerprint_mismatch/backups/3_22.2.6-to-current_cluster_full-planned-and-executed-on-current-incremental-planned-and-executed-on-22.2.6_JtG9
for example. I used the script below to restore this backup on all patch releases of 22.2 and then to compute the fingerprints of thebank.bank
table.Script (set
CLUSTER
to your liking)The output of the script above is a
fingerprints.txt
file that displays the fingerprints of thebank.bank
table after restoring that backup for each patch release. Running it on a gceworker, I get the following result:Notes
22.2.0
and22.2.6
stand out, each having a fingerprint that only occurs in that patch release (9057563089494184689
and-7969207273340626758
respectively)22.2.1
through22.2.5
,22.2.7
, and22.2.8
share the same fingerprint,316766736030870651
22.2.9
and above start restoring a fingeprint of-5791102351434769513
. This is the expected fingerprint, as it's the fingerprint computed when the backup was taken.Reproduction
I haven't had the time to do much in terms of making sure this issue is reproducible (saw the issue yesterday night). This issue was uncovered by running the
backup-restore/mixed-versions
roachtest while I attempted to backport somemixedversion
improvements (#105454 and #105231) to release-23.1.There is a chance the test failure is reproducible by running the test on https://github.com/renatolabs/cockroach/tree/rc/secure-random-backports with random seed
-6450315306042512095
, though I haven't tried yet.Final notes
6_22.2.6-to-current_cluster_all-planned-and-executed-on-random-node
.backup_issue_22_2_fingerprint_mismatch
bucket.Jira issue: CRDB-29263
The text was updated successfully, but these errors were encountered: