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

Make DemoteMaster idempotent. #5293

Merged
merged 2 commits into from
Oct 12, 2019

Conversation

enisoc
Copy link
Member

@enisoc enisoc commented Oct 11, 2019

NOTE: This PR is targeting the reparent-refactor feature branch, not master.

These are talking about the serving graph, which no longer exists.
Instead of storing serving state of each tablet in topo, we now have
vtgate directly query serving state of every tablet.

Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
@enisoc enisoc requested a review from deepthi October 11, 2019 19:51
@enisoc enisoc requested a review from sougou as a code owner October 11, 2019 19:51
Copy link
Member

@deepthi deepthi left a comment

Choose a reason for hiding this comment

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

Very nice! looks good to me. Do you plan to add unit tests in a future PR?

@enisoc
Copy link
Member Author

enisoc commented Oct 12, 2019

The important test IMO will be in e2e when we test PRS with real mysqld servers. We can think about unit tests, but for code that depends so much on interaction with MySQL, I feel like the unit test ends up testing the fake MySQL more than it tests the interaction code.

@enisoc enisoc merged commit 7918d1b into vitessio:reparent-refactor Oct 12, 2019
@enisoc enisoc deleted the demote-master branch October 12, 2019 03:21
systay pushed a commit that referenced this pull request Jul 22, 2024
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.

2 participants