github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/dm/tests/dmctl_advance/check_list/migrate_relay.sh (about)

     1  #!/bin/bash
     2  
     3  function migrate_relay_wrong_arg() {
     4  	run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \
     5  		"migrate-relay" \
     6  		"migrate-relay <source> <binlogName> <binlogPos> \[flags\]" 1
     7  }
     8  
     9  function migrate_relay_without_worker() {
    10  	binlog_pos="invalid-binlog-pos"
    11  	run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \
    12  		"migrate-relay $SOURCE_ID1 bin-000001 $binlog_pos" \
    13  		"strconv.Atoi: parsing \"$binlog_pos\": invalid syntax" 1
    14  }