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

plugin: fix null domain when load with plugin in 2.1 #11426

Merged
merged 5 commits into from Jul 30, 2019
Merged

plugin: fix null domain when load with plugin in 2.1 #11426

merged 5 commits into from Jul 30, 2019

Conversation

lysu
Copy link
Collaborator

@lysu lysu commented Jul 24, 2019

What problem does this PR solve?

fix NPE when plugin call Get domain in OnInit impl

this only affect on 2.1 that loaded with plugin need get domain in OnInit

What is changed and how it works?

cherry-pick miss c3f64b2#diff-5c9d0559245b0eecd9e72c2ec9562ac5R53 part

and let OnInit only be called in Init

Check List

Tests

  • Manual test: compile and load 2.1 plugin

Code changes

  • fix impl

Side effects

  • N/A

Related changes

  • N/A

@lysu lysu added type/bug-fix This PR fixes a bug. component/plugin labels Jul 24, 2019
@lysu lysu requested review from tiancaiamao and jackysp July 24, 2019 13:59
@lysu
Copy link
Collaborator Author

lysu commented Jul 24, 2019

/run-all-tests

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

@lysu lysu added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 26, 2019
@lysu
Copy link
Collaborator Author

lysu commented Jul 26, 2019

/run-all-tests

@lysu
Copy link
Collaborator Author

lysu commented Jul 26, 2019

@tiancaiamao PTAL

@lysu
Copy link
Collaborator Author

lysu commented Jul 26, 2019

ping @tiancaiamao

1 similar comment
@lysu
Copy link
Collaborator Author

lysu commented Jul 29, 2019

ping @tiancaiamao

@tiancaiamao
Copy link
Contributor

LGTM

@tiancaiamao tiancaiamao added the status/can-merge Indicates a PR has been approved by a committer. label Jul 29, 2019
@tiancaiamao tiancaiamao added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 29, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Jul 29, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Jul 29, 2019

@lysu merge failed.

@lysu
Copy link
Collaborator Author

lysu commented Jul 29, 2019

/rebuild

@lysu
Copy link
Collaborator Author

lysu commented Jul 29, 2019

/run-all-tests

@lysu
Copy link
Collaborator Author

lysu commented Jul 29, 2019

/run-unit-test

@zz-jason zz-jason merged commit 3101d6f into pingcap:release-2.1 Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/plugin status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/bug-fix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants