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

Persist temporary setting to etcd (#3131) #3228

Merged
merged 3 commits into from
Dec 1, 2020

Conversation

ti-srebot
Copy link
Contributor

cherry-pick #3131 to release-4.0


Signed-off-by: longfangsong longfangsong@icloud.com

What problem does this PR solve?

Sometimes lightning and BR want to patch some of the configuation, #3082 support this, but this implemetion store all the temporary setting in memory, this will cause these settings not taking effect when pd master in cluster is down.

What is changed and how it works?

Save the temporary setting to etcd

See this doc for details.

Check List

Tests

  • Unit test
  • Integration test

Code changes

  • Has persistent data change

Side effects

  • Possible performance regression
  • Increased code complexity

Release note

  • No release note

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot ti-srebot added status/LGT2 Indicates that a PR has LGTM 2. type/cherry-pick labels Nov 30, 2020
@ti-srebot ti-srebot added this to the v4.0.9 milestone Nov 30, 2020
@ti-srebot
Copy link
Contributor Author

@longfangsong please accept the invitation then you can push to the cherry-pick pull requests.
https://github.com/ti-srebot/pd/invitations

Signed-off-by: longfangsong <longfangsong@icloud.com>
@nolouch nolouch modified the milestones: v4.0.9, v4.0.10 Nov 30, 2020
Copy link
Contributor

@Yisaer Yisaer left a comment

Choose a reason for hiding this comment

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

LGTM

@Yisaer
Copy link
Contributor

Yisaer commented Dec 1, 2020

/merge

@ti-chi-bot
Copy link
Member

@Yisaer: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the tidb-community-bots/ti-community-prow repository.

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Dec 1, 2020
@ti-chi-bot
Copy link
Member

Can merge label has been added.

Git tree hash: fb6a96f

@ti-chi-bot ti-chi-bot merged commit 9b1baad into tikv:release-4.0 Dec 1, 2020
@rleungx rleungx modified the milestones: v4.0.10, v4.0.9 Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants