Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: BR在a集群备份成功,用在b集群还原失败
【TiDB Usage Environment】Production Environment
【TiDB Version】6.1.2
【Reproduction Path】Operations that led to the issue: Cluster A was upgraded from version 5.3.1 to 6.1.2, and the BR tool was also upgraded. Additionally, we created a new Cluster B.
【Encountered Issue: Symptoms and Impact】After performing the operations, we found that the historical BR backup from version 5.3.1 could be successfully restored in Cluster B (version 6.1.2), but data queries returned no results. When performing a BR backup of the current data from Cluster A and restoring it in Cluster B, the restoration failed. We are now seeking a reliable data synchronization component solution to synchronize data from Cluster A to Cluster B, after which the business will be migrated to Cluster B.
【Resource Configuration】
【Attachments: Screenshots/Logs/Monitoring】Both clusters are using BR version 6.1.2. Can we use a different version for the operation? How can we troubleshoot the specific issue?
(base) [root@tidb0003 cluster]# ./br backup table \
–db spider --table aba_quarterly
–pd “172.16.16.13:2379”
-s “local:///home/br-backup/table/quarterly/20221221”
–log-file backupfull.log
Detail BR log in backupfull.log
Table Backup <--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> 100.00%
Checksum <------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> 100.00%
[2022/12/22 04:45:15.860 +08:00] [INFO] [collector.go:69] [“Table Backup success summary”] [total-ranges=801] [ranges-succeed=801] [ranges-failed=0] [backup-checksum=1m10.426031647s] [backup-fast-checksum=578.474µs] [backup-total-ranges=8] [backup-total-regions=557] [total-take=6m40.065563235s] [Size=15248693413] [BackupTS=438214358710616065] [total-kv=269627120] [total-kv-size=41.97GB] [average-speed=104.9MB/s] [backup-data-size(after-compressed)=15.25GB]
(base) [root@tidb0003 cluster]#
– Restore failed
[tidb@tiup-new tools]$ ./br restore table \
–db spider --table aba_quarterly
–pd “172.16.16.67:2379”
-s “local:///home/br-backup/table/quarterly/20221221”
–log-file backupfull.log
–check-requirements=false
Detail BR log in backupfull.log
[2022/12/22 04:49:49.665 +08:00] [INFO] [collector.go:69] [“Table Restore failed summary”] [total-ranges=0] [ranges-succeed=0] [ranges-failed=0]
Error: the config ‘new_collations_enabled_on_first_bootstrap’ not match, upstream:False, downstream: True: [BR:Common:ErrUnknown]internal error
[tidb@tiup-new tools]$