Skip to content

Persist temporary setting to etcd (#3131)#3228

Merged
ti-chi-bot merged 3 commits into
tikv:release-4.0from
ti-srebot:release-4.0-1eeb4c87a3fe
Dec 1, 2020
Merged

Persist temporary setting to etcd (#3131)#3228
ti-chi-bot merged 3 commits into
tikv:release-4.0from
ti-srebot:release-4.0-1eeb4c87a3fe

Conversation

@ti-srebot
Copy link
Copy Markdown
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-chi-bot ti-chi-bot requested a review from lhy1024 November 30, 2020 05:39
@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 requested review from Yisaer and rleungx November 30, 2020 05:39
@ti-srebot ti-srebot added this to the v4.0.9 milestone Nov 30, 2020
@ti-srebot
Copy link
Copy Markdown
Contributor Author

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

@longfangsong longfangsong force-pushed the release-4.0-1eeb4c87a3fe branch from 458c4d8 to 7404ff3 Compare November 30, 2020 06:32
Signed-off-by: longfangsong <longfangsong@icloud.com>
@longfangsong longfangsong force-pushed the release-4.0-1eeb4c87a3fe branch from 7404ff3 to 6fd9a82 Compare November 30, 2020 07:24
@nolouch nolouch modified the milestones: v4.0.9, v4.0.10 Nov 30, 2020
Copy link
Copy Markdown
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
Copy Markdown
Contributor

Yisaer commented Dec 1, 2020

/merge

@ti-chi-bot
Copy link
Copy Markdown
Member

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

/run-all-tests

Details

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
Copy Markdown
Member

Can merge label has been added.

DetailsGit 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