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

failover: emit events when pd failover (#1466) #1507

Merged
merged 8 commits into from
Jan 11, 2020

Conversation

sre-bot
Copy link
Contributor

@sre-bot sre-bot commented Jan 8, 2020

cherry-pick #1466 to release-1.1


What problem does this PR solve?

fixes: #1465

This PR tries to emit three k8s Events: PDMemberUnhealthy, PDMemberMarkedAsFailure and PDMemberDeleted to indicate the pd failover procedure when the use type kubectl describe tc:

image

But there is a problem that there are many not very useful Events: SuccessfulUpdate, I will open another PR to remove them. @cofyc @aylei PTAL.

What is changed and how does it work?

Check List

Tests

  • Unit test

Code changes

  • Has Go code change

Side effects

Related changes

  • Need to cherry-pick to the release branch

Does this PR introduce a user-facing change?:

Emit events when PD failover

Copy link
Contributor

@aylei aylei left a comment

Choose a reason for hiding this comment

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

LGTM

@aylei
Copy link
Contributor

aylei commented Jan 9, 2020

/merge

@sre-bot
Copy link
Contributor Author

sre-bot commented Jan 9, 2020

Your auto merge job has been accepted, waiting for 1493, 1445, 1515, 1505

@sre-bot
Copy link
Contributor Author

sre-bot commented Jan 9, 2020

/run-all-tests

@sre-bot
Copy link
Contributor Author

sre-bot commented Jan 9, 2020

@sre-bot merge failed.

@cofyc
Copy link
Contributor

cofyc commented Jan 11, 2020

/merge

@sre-bot
Copy link
Contributor Author

sre-bot commented Jan 11, 2020

/run-all-tests

@sre-bot sre-bot merged commit 6ca1d83 into pingcap:release-1.1 Jan 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants