github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/tests/integration_tests/_utils/run_pulsar_consumer (about) 1 #!/bin/bash 2 3 set -e 4 5 workdir=$OUT_DIR/$TEST_NAME 6 pwd=$pwd 7 8 echo "[$(date)] <<<<<< START Pulsar consumer in $TEST_NAME case >>>>>>" 9 cd $workdir 10 11 # Because there is no transaction concept in pulsar, 12 # we need to set `batch-dml-enable` to false to avoid data inconsistency. 13 downstream_uri="mysql://root@127.0.0.1:3306/?safe-mode=true&batch-dml-enable=false" 14 15 # output debug log to allow us to check the consumer's behavior when it encounters errors 16 cdc_pulsar_consumer --log-file $workdir/cdc_pulsar_consumer$log_suffix.log --log-level debug --downstream-uri ${downstream_uri} "$@" >>$workdir/cdc_pulsar_consumer_stdout$log_suffix.log 2>&1 & 17 18 cd $pwd