-
Notifications
You must be signed in to change notification settings - Fork 288
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
CDC Server support data-dir #1879
Conversation
/run-all-tests |
/run-integration-tests |
Codecov Report
@@ Coverage Diff @@
## master #1879 +/- ##
=================================================
+ Coverage 37.8006% 54.1688% +16.3682%
=================================================
Files 110 164 +54
Lines 11394 17523 +6129
=================================================
+ Hits 4307 9492 +5185
- Misses 6662 7002 +340
- Partials 425 1029 +604 |
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
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: b8fdbe8
|
/run-integration-tests |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #2069. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #2070. |
In response to a cherrypick label: new pull request created: #2071. |
* This is an automated cherry-pick of #1879 Signed-off-by: ti-chi-bot <[email protected]> * fix conflicts. * add etcdClient to server, try to fix lack of field. * fix server config marshal test. * make check, fix go mod. * fix config test, make ci happy. * fix config conflict in marshal config. * try to fix tests. * fix backend_sorter_test. * Update pkg/config/config.go * revert changes in unified sorter. * use owner etcd client to get changefeed related info. Co-authored-by: Ling Jin <[email protected]> Co-authored-by: JinlingChristopher <[email protected]> Co-authored-by: amyangfei <[email protected]> Co-authored-by: amyangfei <[email protected]>
What problem does this PR solve?
This PR makes TiCDC support
--data-dir
at the server level.What is changed and how it works?
--data-dir
is supported at the server level, default to""
, if not set, it will be set by conditions:/tmp/cdc_data
will be set as default data-dir--sort-dir
set, choose the valid one with the largest available space as data-dir.--sort-dir
set at both server level and changefeed level won't take effect, and default to/tmp/sorter
, this means it can not be changed by both command flag or config file/{data-dir}/tmp/sorter
Check List
Tests
Code changes
Side effects
Related changes
Release note