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

Fix the pump/drainer data dir to avoid data loss caused by bad configuration #826

Merged
merged 3 commits into from
Aug 27, 2019

Conversation

aylei
Copy link
Contributor

@aylei aylei commented Aug 26, 2019

Signed-off-by: Aylei [email protected]

What problem does this PR solve?

We allow users to specify a customized configuration file for pump and drainer, but if the user forget to configure the data-dir in config file or configure it wrongly, there are potential data loss risk.

This PR fix this problem.

What is changed and how does it work?

Fix the data-dir via command line arguments.

Check List

Tests

  • E2E test

Code changes

  • Has Helm charts change

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Does this PR introduce a user-facing change?:

Fix the pump/drainer data dir to avoid potential data loss.

@aylei
Copy link
Contributor Author

aylei commented Aug 26, 2019

@tennix @weekface @onlymellb PTAL

@aylei
Copy link
Contributor Author

aylei commented Aug 26, 2019

/run-e2e-tests

Copy link
Member

@tennix tennix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aylei
Copy link
Contributor Author

aylei commented Aug 27, 2019

/run-e2e-tests

@aylei
Copy link
Contributor Author

aylei commented Aug 27, 2019

/run-e2e-in-kind

2 similar comments
@aylei
Copy link
Contributor Author

aylei commented Aug 27, 2019

/run-e2e-in-kind

@aylei
Copy link
Contributor Author

aylei commented Aug 27, 2019

/run-e2e-in-kind

@aylei aylei merged commit b48e7c9 into pingcap:master Aug 27, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Aug 27, 2019

cherry pick to release-1.0 failed

aylei added a commit to aylei/tidb-operator that referenced this pull request Nov 19, 2019
aylei added a commit to aylei/tidb-operator that referenced this pull request Nov 19, 2019
aylei added a commit to aylei/tidb-operator that referenced this pull request Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants