-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Performing full restore and log restore separately will be a disaster #54418
Labels
component/br
This issue is related to BR of TiDB.
severity/major
type/bug
The issue is confirmed as a bug.
Comments
Leavrth
added
type/bug
The issue is confirmed as a bug.
severity/major
component/br
This issue is related to BR of TiDB.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
labels
Jul 3, 2024
ti-chi-bot
bot
added
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
labels
Jul 3, 2024
|
13 tasks
Leavrth
removed
may-affects-5.4
This bug maybe affects 5.4.x versions.
may-affects-6.1
labels
Jul 3, 2024
Minimal reproduce stepBackup# workload 1
mysql --host 127.0.0.1 --port 4000 -u root -e "CREATE TABLE test.t1(id int primary key, a char(20));"
# start a log backup task
tiup br:v8.1.0 log start --task-name pitr -s "local:///root/backups/test1/log" -u 127.0.0.1:2379
# backup full -- BackupTS 450884656681451549
tiup br:v8.1.0 backup full -s "local:///root/backups/test1/full" -u 127.0.0.1:2379
# workload 2
mysql --host 127.0.0.1 --port 4000 -u root -e "CREATE TABLE test.t2(id int primary key, a char(20));"
mysql --host 127.0.0.1 --port 4000 -u root -e "INSERT INTO test.t1 values (1, '1');"
# incremental backup -- BackupTS 450884684363857924
tiup br:v8.1.0 backup full -s "local:///root/backups/test1/incremental" -u 127.0.0.1:2379 --lastbackupts 450884656681451549
# workload 3
mysql --host 127.0.0.1 --port 4000 -u root -e "REPLACE INTO test.t1 values (1, '2');"
mysql --host 127.0.0.1 --port 4000 -u root -e "REPLACE INTO test.t2 values (1, '2');"
Backup Checksum
Restore# full restore
tiup br:v8.1.0 restore full -s "local:///root/backups/test1/full" -u 127.0.0.1:2379
# incremental restore
tiup br:v8.1.0 restore full -s "local:///root/backups/test1/incremental" -u 127.0.0.1:2379
# log restore
tiup br:v8.1.0 restore point -s "local:///root/backups/test1/log" -u 127.0.0.1:2379 --start-ts 450884684363857924
Restore Checksum
|
This was referenced Aug 5, 2024
Leavrth
removed
affects-6.5
This bug affects the 6.5.x(LTS) versions.
affects-7.1
This bug affects the 7.1.x(LTS) versions.
affects-7.5
This bug affects the 7.5.x(LTS) versions.
affects-8.1
This bug affects the 8.1.x(LTS) versions.
labels
Sep 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
component/br
This issue is related to BR of TiDB.
severity/major
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
test.t1
.T1
.T1
.2. What did you expect to see? (Required)
There is one row in the table
test.t1
.3. What did you see instead (Required)
There is no row in the table
test.t1
.4. What is your TiDB version? (Required)
v6.5, v7.1, v7.5, v8.1
The text was updated successfully, but these errors were encountered: