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

server: ConnectionEvent error from plugins should not make TiDB exit #9889

Merged
merged 2 commits into from
Mar 27, 2019

Conversation

tiancaiamao
Copy link
Contributor

What problem does this PR solve?

When I am testing whitelist plugin, I find that whitelist check fail makes tidb exit. That completely unreasonable.

What is changed and how it works?

ConnectionEvent error from plugins should not make TiDB exit

Check List

Tests

  • Manual test (add detailed scripts or steps below)

@lysu

@codecov
Copy link

codecov bot commented Mar 25, 2019

Codecov Report

Merging #9889 into master will decrease coverage by 10.0879%.
The diff coverage is 0%.

@@               Coverage Diff                @@
##             master      #9889        +/-   ##
================================================
- Coverage   77.2034%   67.1154%   -10.088%     
================================================
  Files           405        385        -20     
  Lines         81635      80588      -1047     
================================================
- Hits          63025      54087      -8938     
- Misses        13939      21652      +7713     
- Partials       4671       4849       +178

Copy link
Contributor

@lysu lysu left a comment

Choose a reason for hiding this comment

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

LGTM

@lysu lysu added type/bugfix This PR fixes a bug. component/plugin labels Mar 25, 2019
@tiancaiamao
Copy link
Contributor Author

PTAL @jackysp

Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

@jackysp
Copy link
Member

jackysp commented Mar 27, 2019

/run-all-tests

@lysu lysu added the status/LGT2 Indicates that a PR has LGTM 2. label Mar 27, 2019
@lysu lysu merged commit 1f01857 into pingcap:master Mar 27, 2019
@gregwebs
Copy link
Contributor

gregwebs commented Apr 1, 2019

It looks like the error is completely discarded. Should it be logged first?

@tiancaiamao
Copy link
Contributor Author

@tiancaiamao tiancaiamao deleted the plugin-fix branch April 1, 2019 13:21
@gregwebs
Copy link
Contributor

gregwebs commented Apr 2, 2019

oh, good! It would be best to log the error where it is being dropped though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/plugin status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants