Skip to content

Commit cb1f359

Browse files
Merge branch 'chriskirkland/issues-8260-pt2' into multitable-spike
2 parents b68a807 + 85edd14 commit cb1f359

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

  • localtests/move-tables

localtests/move-tables/resume-panic-on-row-copy/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ echo -e "\n\n\n\n\n"
109109

110110
echo "⚙️ Validating checkpointed state after resumed migration..."
111111

112-
# validate we processed a single row-copy chunk (10 rows) and there are 20 total to process
112+
# validate we processed the rest of the 20 rows to copy
113113
rows_copied=$(mysql-exec target primary $database -Ne "SELECT gh_ost_rows_copied FROM \`${checkpoint_table}\` ORDER BY gh_ost_chk_id DESC LIMIT 1;")
114114
if [ $rows_copied -ne 20 ]; then
115115
echo "ERROR: Expected last checkpoint to show 20 rows copied."

localtests/move-tables/single-with-hooks/test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11

22
#!/bin/bash
33
# Custom test:
4-
# - panic during row copy stage, prior to cutover
5-
# - resume and complete the migration
4+
# Executes migration with custom hooks (on-row-copy-complete, on-before-cut-over, on-success)
5+
# which are executed at different stages of the migration and validate the environment variables
6+
# expected to be available to the respective hooks.
67

78
database=test
89
table_name=gh_ost_test

0 commit comments

Comments
 (0)