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: bug fix for the config-check mode #15190

Merged
merged 3 commits into from
Mar 7, 2020

Conversation

qw4990
Copy link
Contributor

@qw4990 qw4990 commented Mar 6, 2020

What problem does this PR solve?

In this PR(#14750), we support updating configs online according to PD, and the first step to implement this feature(#13660) is to register the current config to PD when TiDB starts.

But in the config-check mode(when the config-check flag is true), we don't need to do this register operation.

What is changed and how it works?

If the config-check flag is true, exit immediately after checking the config.

Check List

Tests

  • Unit test

@qw4990 qw4990 added type/bugfix This PR fixes a bug. component/config labels Mar 6, 2020
@codecov
Copy link

codecov bot commented Mar 6, 2020

Codecov Report

Merging #15190 into master will not change coverage by %.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #15190   +/-   ##
===========================================
  Coverage   80.3263%   80.3263%           
===========================================
  Files           503        503           
  Lines        133483     133483           
===========================================
  Hits         107222     107222           
  Misses        17884      17884           
  Partials       8377       8377           

Copy link
Member

@rleungx rleungx left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@NingLin-P NingLin-P left a comment

Choose a reason for hiding this comment

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

LGTM

@CLAassistant
Copy link

CLAassistant commented Mar 7, 2020

CLA assistant check
All committers have signed the CLA.

@overvenus
Copy link
Member

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label Mar 7, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Mar 7, 2020

/run-all-tests

@sre-bot sre-bot merged commit 0aef6ec into pingcap:master Mar 7, 2020
chenlx0 pushed a commit to chenlx0/tidb that referenced this pull request Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/config status/can-merge Indicates a PR has been approved by a committer. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants