-
Notifications
You must be signed in to change notification settings - Fork 188
mydumper: generate tables needed to dump for mydumper automatically #310
mydumper: generate tables needed to dump for mydumper automatically #310
Conversation
Codecov Report
@@ Coverage Diff @@
## master #310 +/- ##
===========================================
Coverage ? 59.9082%
===========================================
Files ? 135
Lines ? 15043
Branches ? 0
===========================================
Hits ? 9012
Misses ? 5155
Partials ? 876 |
…check whether we should generate tables args or not
@WangXiangUSTC Revised, PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
@csuzhangxc PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
…hunzhu/dm into czli/mydumper/configSimplify
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cherry pick to release-1.0 in PR #326 |
…ingcap#310) generate the tables needed to be dumped for mydumper automatically when tables needed to be dumped are not given.
What problem does this PR solve?
Now users need to add
extra-args
formydumper
to help it decide tables needed to dump. When the situations are very complicated it's very hard for users to do that. This PR aims to generate the tables needed to be dumped automatically so that we can simplify the configuration process.What is changed and how it works?
Generate mydumper
extra-args
through black-white list and router rules when it is empty. Before start mydumper will connect toDB
to fetch all the tables from database, filter useful tables and generateextra-args
in--tables-list db1.tb1,db2.tb2..
format.A unit-test is added to test whether it can generate right args when
extra-args
is empty. For integration_tests except "start_task" I expurge theextra-args
to test whether it can run correctly.Check List
Tests
Related changes