Skip to content

Commit 4d61e5d

Browse files
committed
fix resume-panic-before-drain-complete test
1 parent adc88fb commit 4d61e5d

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

localtests/move-tables-test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,11 @@ build_ghost_command() {
204204
--checkpoint \
205205
--postpone-cut-over-flag-file=$postpone_cutover_flag_file \
206206
--checkpoint-seconds=1 \
207+
--unsafe-fail-points-enabled \
207208
--execute ${extra_args[@]}"
208209

209210
if [ -n "$GO_FAILPOINTS" ]; then
210-
cmd="GO_FAILPOINTS=\"$GO_FAILPOINTS\" $cmd --unsafe-fail-points-enabled"
211+
cmd="GO_FAILPOINTS=\"$GO_FAILPOINTS\" $cmd"
211212
fi
212213
}
213214

localtests/move-tables/resume-panic-before-drain-complete/test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# - validate RENAME and source writes are not possible
66
# - resume and complete the migration
77

8+
set -x
9+
810
database=test
911
table_name=gh_ost_test
1012

@@ -61,7 +63,7 @@ if [ $? -gt 0 ]; then
6163
fi
6264

6365
# Table not writeable on source
64-
mysql-exec source primary $database -sNe "INSERT INTO ${table_name} VALUES (NULL, 1021, 2001, 2400001, 201, 1700000041, 1700000041);"
66+
mysql-exec source primary $database -e "INSERT INTO ${table_name} VALUES (NULL, 1021, 2001, 2400001, 201, 1700000041, 1700000041);"
6567
if [ $? -eq 0 ]; then
6668
echo "ERROR: Table '${table_name}' was writeable on source but should not be!."
6769
return 1

0 commit comments

Comments
 (0)