Skip to content

Make DemoteMaster idempotent.#5293

Merged
enisoc merged 2 commits intovitessio:reparent-refactorfrom
planetscale:demote-master
Oct 12, 2019
Merged

Make DemoteMaster idempotent.#5293
enisoc merged 2 commits intovitessio:reparent-refactorfrom
planetscale:demote-master

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
Collaborator

@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
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