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

*: add option to check label strictly #1553

Merged
merged 3 commits into from
Jun 3, 2019
Merged

Conversation

nolouch
Copy link
Contributor

@nolouch nolouch commented May 29, 2019

Signed-off-by: nolouch nolouch@gmail.com

What problem does this PR solve?

close: #1544
There are multiple users experiencing this problem: they have configured the label for tikv-servers, but they are not configured in the PD, resulting in data distribution that is inconsistent with expectations.

What is changed and how it works?

strictly check the label.

Check List

Tests

  • Unit test
  • Manual test

@nolouch nolouch requested review from rleungx and disksing May 29, 2019 08:11
@nolouch nolouch added needs-cherry-pick-release-2.1 The PR needs to cherry pick to release-2.1 branch. needs-cherry-pick-release-3.0 The PR needs to cherry pick to release-3.0 branch. labels May 29, 2019
Signed-off-by: nolouch <nolouch@gmail.com>
@codecov-io
Copy link

Codecov Report

Merging #1553 into master will increase coverage by 0.24%.
The diff coverage is 92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1553      +/-   ##
==========================================
+ Coverage   67.49%   67.74%   +0.24%     
==========================================
  Files         159      159              
  Lines       16138    16160      +22     
==========================================
+ Hits        10892    10947      +55     
+ Misses       4272     4249      -23     
+ Partials      974      964      -10
Impacted Files Coverage Δ
server/cluster.go 76.54% <100%> (+2.07%) ⬆️
server/cluster_info.go 85.56% <100%> (+0.05%) ⬆️
server/config.go 82.33% <100%> (+0.15%) ⬆️
server/option.go 90.69% <100%> (+0.07%) ⬆️
server/schedule/mockcluster.go 84.13% <33.33%> (-0.39%) ⬇️
pkg/tempurl/tempurl.go 57.14% <0%> (-14.29%) ⬇️
client/client.go 68.39% <0%> (+0.41%) ⬆️
server/grpc_service.go 60.51% <0%> (+0.42%) ⬆️
server/api/store.go 51.87% <0%> (+1.12%) ⬆️
server/tso.go 76.59% <0%> (+2.12%) ⬆️
... and 6 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 915a75f...7d90fd3. Read the comment docs.

Signed-off-by: nolouch <nolouch@gmail.com>
@nolouch
Copy link
Contributor Author

nolouch commented May 31, 2019

/ok-to-test

@nolouch nolouch merged commit 0a361b9 into tikv:master Jun 3, 2019
@nolouch nolouch deleted the label-check branch June 3, 2019 05:16
nolouch added a commit to nolouch/pd that referenced this pull request Jun 17, 2019
* *: add option to check tikv label strictly

Signed-off-by: nolouch <nolouch@gmail.com>
disksing pushed a commit that referenced this pull request Jun 17, 2019
* config: warn undefined config item (#1577)

* config: warn undefined config item

Signed-off-by: nolouch <nolouch@gmail.com>

* *: add option to check label strictly (#1553)

* *: add option to check tikv label strictly

Signed-off-by: nolouch <nolouch@gmail.com>

* config: disable label check by default (#1568)

Signed-off-by: nolouch <nolouch@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-cherry-pick-release-2.1 The PR needs to cherry pick to release-2.1 branch. needs-cherry-pick-release-3.0 The PR needs to cherry pick to release-3.0 branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

proposal: add option to check tikv label strictly
4 participants