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

config: fix the store limit cannot be persisted (#3380) #3403

Merged
merged 2 commits into from
Jan 28, 2021

Conversation

ti-srebot
Copy link
Contributor

@ti-srebot ti-srebot commented Jan 28, 2021

cherry-pick #3380 to release-4.0
You can switch your code base to this Pull Request by using git-extras:

# In pd repo:
git pr https://github.com/tikv/pd/pull/3403

After apply modifications, you can push your change to this PR via:

git push [email protected]:ti-srebot/pd.git pr/3403:release-4.0-028befdbe8e0

What problem does this PR solve?

The store limit cannot persist due to we only change the value in the memory. Close #3382.

What is changed and how it works?

This PR persists the store limit once it changes and if persistence fails, we will roll back to the original one.

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch

Release note

  • Fix the issue that the store limit cannot be persisted

@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has not been approved.

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by writing /lgtm in a comment.
Reviewer can cancel approval by writing /lgtm cancel in a comment.

@ti-srebot
Copy link
Contributor Author

@rleungx you're already a collaborator in bot's repo.

@rleungx rleungx force-pushed the release-4.0-028befdbe8e0 branch from 607fe57 to 5fd7621 Compare January 28, 2021 08:59
Copy link
Contributor

@nolouch nolouch left a comment

Choose a reason for hiding this comment

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

lgtm

@rleungx
Copy link
Member

rleungx commented Jan 28, 2021

/run-all-tests

@HunDunDM
Copy link
Member

/merge

@ti-chi-bot
Copy link
Member

@HunDunDM: 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 ti-community-infra/tichi repository.

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: ffe37dc

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jan 28, 2021
@rleungx
Copy link
Member

rleungx commented Jan 28, 2021

/run-unit-tests

@codecov
Copy link

codecov bot commented Jan 28, 2021

Codecov Report

Merging #3403 (ffe37dc) into release-4.0 (28269fc) will decrease coverage by 0.13%.
The diff coverage is 56.75%.

Impacted file tree graph

@@               Coverage Diff               @@
##           release-4.0    #3403      +/-   ##
===============================================
- Coverage        74.75%   74.62%   -0.14%     
===============================================
  Files              209      209              
  Lines            19760    19789      +29     
===============================================
- Hits             14772    14767       -5     
- Misses            3653     3681      +28     
- Partials          1335     1341       +6     
Flag Coverage Δ
unittests 74.62% <56.75%> (-0.14%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/cluster/store_limiter.go 51.06% <ø> (ø)
server/config/persist_options.go 87.16% <50.00%> (ø)
server/cluster/cluster.go 78.05% <54.83%> (-0.92%) ⬇️
server/handler.go 44.00% <66.66%> (-0.28%) ⬇️
pkg/mock/mockoption/mockoption.go 90.32% <100.00%> (+0.10%) ⬆️
pkg/errs/errs.go 75.00% <0.00%> (-25.00%) ⬇️
server/kv/etcd_kv.go 69.56% <0.00%> (-10.15%) ⬇️
server/member/leader.go 63.76% <0.00%> (-5.05%) ⬇️
server/id/id.go 76.19% <0.00%> (-4.77%) ⬇️
pkg/dashboard/adapter/manager.go 84.78% <0.00%> (-4.35%) ⬇️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 28269fc...ffe37dc. Read the comment docs.

@ti-chi-bot ti-chi-bot merged commit 96efd6f into tikv:release-4.0 Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/config Configuration logic. 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.

5 participants