Skip to content

Commit a2b2031

Browse files
authored
fix(test): fix unsplittable_tables test (#3630)
* debug * fix unsplittable_tables
1 parent 4927ef0 commit a2b2031

File tree

1 file changed

+4
-1
lines changed
  • tests/integration_tests/unsplittable_tables

1 file changed

+4
-1
lines changed

tests/integration_tests/unsplittable_tables/run.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ function run() {
2121
run_cdc_server --workdir $WORK_DIR --binary $CDC_BINARY
2222

2323
SINK_URI="mysql://root:@127.0.0.1:3306/"
24-
cdc_cli_changefeed create --sink-uri="$SINK_URI" -c "test" --config="$CUR/conf/changefeed.toml"
2524

2625
run_sql "use test;create table t1 (a int primary key, b int, unique key uk(b));" ${UP_TIDB_HOST} ${UP_TIDB_PORT}
26+
run_sql "use test;create table t1 (a int primary key, b int, unique key uk(b));" ${DOWN_TIDB_HOST} ${DOWN_TIDB_PORT}
2727
run_sql "split table test.t1 between (1) and (100000) regions 50;" ${UP_TIDB_HOST} ${UP_TIDB_PORT}
2828

29+
cdc_cli_changefeed create --sink-uri="$SINK_URI" -c "test" --config="$CUR/conf/changefeed.toml"
30+
2931
sleep 60 # sleep enough for try to split table
3032
check_sync_diff $WORK_DIR $CUR/conf/diff_config.toml 50
3133

@@ -49,6 +51,7 @@ function run_for_force_split() {
4951
SINK_URI="mysql://root:@127.0.0.1:3306/"
5052

5153
run_sql "use test;create table t1 (a int primary key, b int, unique key uk(b));" ${UP_TIDB_HOST} ${UP_TIDB_PORT}
54+
run_sql "use test;create table t1 (a int primary key, b int, unique key uk(b));" ${DOWN_TIDB_HOST} ${DOWN_TIDB_PORT}
5255
run_sql "split table test.t1 between (1) and (100000) regions 50;" ${UP_TIDB_HOST} ${UP_TIDB_PORT}
5356

5457
sleep 10

0 commit comments

Comments
 (0)