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: warn undefined config item #1577

Merged
merged 4 commits into from
Jun 13, 2019
Merged

Conversation

nolouch
Copy link
Contributor

@nolouch nolouch commented Jun 11, 2019

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

What problem does this PR solve?

Now, the undefined config item will let PD exit. This makes the new configuration item incompatible with the old configuration template.

What is changed and how it works?

Only log it with warn level.

Check List

Tests

  • Manual test (add detailed scripts or steps below)

image

Signed-off-by: nolouch <nolouch@gmail.com>
conf/config.toml Outdated Show resolved Hide resolved
conf/config.toml Outdated Show resolved Hide resolved
Signed-off-by: nolouch <nolouch@gmail.com>
@rleungx
Copy link
Member

rleungx commented Jun 12, 2019

Personally, I think this change will lose part of its original meaning of checking the config items.

conf/config.toml Outdated Show resolved Hide resolved
Signed-off-by: nolouch <nolouch@gmail.com>
conf/config.toml Outdated Show resolved Hide resolved
Signed-off-by: nolouch <nolouch@gmail.com>
@nolouch nolouch merged commit 045f782 into tikv:master Jun 13, 2019
@nolouch nolouch deleted the log-undefined branch June 13, 2019 05:37
nolouch added a commit to nolouch/pd that referenced this pull request Jun 17, 2019
* config: warn undefined config item

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>
nolouch added a commit to nolouch/pd that referenced this pull request Jul 2, 2019
* config: warn undefined config item

Signed-off-by: nolouch <nolouch@gmail.com>
disksing pushed a commit that referenced this pull request Jul 2, 2019
* config: warn undefined config item

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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants