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
latest_log_db=$(run_sql "select table_schema from information_schema.tables where table_schema like '__TiDB_BR_Temporary_Log_Restore_Checkpoint%' order by table_schema desc limit 1;"| tail -n 1 | awk '{print $2}')
117
+
latest_sst_db=$(run_sql "select table_schema from information_schema.tables where table_schema like '__TiDB_BR_Temporary_Custom_SST_Restore_Checkpoint%' order by table_schema desc limit 1;"| tail -n 1 | awk '{print $2}')
118
+
run_sql "DROP DATABASE IF EXISTS \`$latest_log_db\`;"
119
+
run_sql "DROP DATABASE IF EXISTS \`$latest_sst_db\`;"
Copy file name to clipboardExpand all lines: br/tests/br_restore_checkpoint/run.sh
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,8 @@ if [ $restore_fail -ne 1 ]; then
80
80
fi
81
81
82
82
# check the snapshot restore has checkpoint data
83
-
run_sql 'select count(*) from '"__TiDB_BR_Temporary_Snapshot_Restore_Checkpoint"'.`cpt_data`;'
83
+
latest_db=$(run_sql "select table_schema from information_schema.tables where table_schema like '__TiDB_BR_Temporary_Snapshot_Restore_Checkpoint%' order by table_schema desc limit 1;"| tail -n 1 | awk '{print $2}')
84
+
run_sql "select count(*) from \`$latest_db\`.\`cpt_data\`;"
84
85
check_contains "count(*): 1"
85
86
86
87
# PITR with checkpoint but failed in the log restore datakv stage
0 commit comments