You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 36fc213
Browse filesBrowse the repository at this point in the historyBrowse files
returnnil, errors.Errorf("%s.%s %s not found on %s and all required backups sequence", table.Database, table.Table, part.Name, requiredBackup.BackupName)
// Name matched in the diff backup — verify content fingerprint
1111
+
// before treating the part as a duplicate. Prefer
1112
+
// hash_of_all_files; fall back to legacy checksums; if neither
1113
+
// side has any fingerprint, accept the name match.
1114
+
// See https://github.com/Altinity/clickhouse-backup/issues/1307
1115
+
ifdiffHash, ok:=existsTable.HashOfAllFiles[name]; ok {
1116
+
newHash:=newTable.HashOfAllFiles[name]
1117
+
ifnewHash==""||diffHash!=newHash {
1118
+
log.Debug().Msgf("part %s.%s/%s name matched diff backup %s but hash_of_all_files mismatch (%q vs %q), will be re-uploaded", existsTable.Database, existsTable.Table, name, backup.RequiredBackup, diffHash, newHash)
1102
1119
continue
1103
1120
}
1104
-
// Name matched in the diff backup — verify content fingerprint
1105
-
// before treating the part as a duplicate. Prefer
1106
-
// hash_of_all_files; fall back to legacy checksums; if neither
1107
-
// side has any fingerprint, accept the name match.
1108
-
// See https://github.com/Altinity/clickhouse-backup/issues/1307
1109
-
ifdiffHash, ok:=existsTable.HashOfAllFiles[name]; ok {
1110
-
newHash:=newTable.HashOfAllFiles[name]
1111
-
ifnewHash==""||diffHash!=newHash {
1112
-
log.Debug().Msgf("part %s.%s/%s name matched diff backup %s but hash_of_all_files mismatch (%q vs %q), will be re-uploaded", existsTable.Database, existsTable.Table, name, backup.RequiredBackup, diffHash, newHash)
1113
-
continue
1114
-
}
1115
-
} elseifdiffCksum, ok:=existsTable.Checksums[name]; ok {
1116
-
newCksum, newOk:=newTable.Checksums[name]
1117
-
if!newOk||diffCksum!=newCksum {
1118
-
log.Debug().Msgf("part %s.%s/%s name matched diff backup %s but checksums mismatch (%d vs %d), will be re-uploaded", existsTable.Database, existsTable.Table, name, backup.RequiredBackup, diffCksum, newCksum)
1119
-
continue
1120
-
}
1121
+
} elseifdiffCksum, ok:=existsTable.Checksums[name]; ok {
1122
+
newCksum, newOk:=newTable.Checksums[name]
1123
+
if!newOk||diffCksum!=newCksum {
1124
+
log.Debug().Msgf("part %s.%s/%s name matched diff backup %s but checksums mismatch (%d vs %d), will be re-uploaded", existsTable.Database, existsTable.Table, name, backup.RequiredBackup, diffCksum, newCksum)
0 commit comments