From 26d9efe78e362c57043d14ea924b533e42ca042e Mon Sep 17 00:00:00 2001 From: Jianjun Liao <36503113+Leavrth@users.noreply.github.com> Date: Mon, 15 Jan 2024 09:59:49 +0800 Subject: [PATCH] integration_test: use dumpling to replace mydumper (#765) close pingcap/tidb-tools#762 --- Makefile | 2 +- importer/README.md | 2 ++ tests/README.md | 2 +- tests/sync_diff_inspector/run.sh | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8d2f923e1..b53eabc7b 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ integration_test: failpoint-enable importer sync_diff_inspector ddl_checker fail @which bin/tikv-server @which bin/pd-server @which bin/sync_diff_inspector - @which bin/mydumper + @which bin/dumpling @which bin/loader @which bin/importer tests/run.sh diff --git a/importer/README.md b/importer/README.md index 149609f0c..8ae387248 100644 --- a/importer/README.md +++ b/importer/README.md @@ -1,5 +1,7 @@ ## importer +Deprecated: The code has been moved to https://github.com/pingcap/tidb/tree/master/cmd/importer + importer is a tool for generating and inserting datas to database which is compatible with MySQL protocol, like MySQL, TiDB. ## How to use diff --git a/tests/README.md b/tests/README.md index 63b0b2367..443b78dd7 100644 --- a/tests/README.md +++ b/tests/README.md @@ -10,7 +10,7 @@ This folder contains all tests which relies on external service such as TiDB. - `bin/tikv-server` - `bin/tidb-server` - `bin/sync_diff_inspector` - - `bin/mydumper` + - `bin/dumpling` - `bin/loader` - `bin/importer` diff --git a/tests/sync_diff_inspector/run.sh b/tests/sync_diff_inspector/run.sh index 75cb9aae1..338f57bae 100644 --- a/tests/sync_diff_inspector/run.sh +++ b/tests/sync_diff_inspector/run.sh @@ -21,7 +21,7 @@ importer -t "create table diff_test.test(a int, aa int, b varchar(10), c float, mysql -uroot -h 127.0.0.1 -P 4000 -e "alter table diff_test.test change column a \`table\` int" echo "dump data and then load to tidb and mysql" -mydumper --host 127.0.0.1 --port 4000 --user root --outputdir $BASE_DIR/dump_diff -B diff_test -T test +dumpling --host 127.0.0.1 --port 4000 --user root -o $BASE_DIR/dump_diff -B diff_test -T "diff_test.test" loader -h 127.0.0.1 -P 4001 -u root -d $BASE_DIR/dump_diff mysql -h ${MYSQL_HOST} -P ${MYSQL_PORT} -u root -e "create database if not exists tidb_loader" loader -h ${MYSQL_HOST} -P ${MYSQL_PORT} -u root -d $BASE_DIR/dump_diff