Skip to content

Commit

Permalink
integration_test: use dumpling to replace mydumper (#765)
Browse files Browse the repository at this point in the history
close #762
  • Loading branch information
Leavrth authored Jan 15, 2024
1 parent e45b718 commit 26d9efe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions importer/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion tests/sync_diff_inspector/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26d9efe

Please sign in to comment.