Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integration_test: use dumpling to replace mydumper #765

Merged
merged 6 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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