Skip to content

Fix reparent test.#5266

Merged
enisoc merged 1 commit intovitessio:reparent-refactorfrom
planetscale:fix-reparent-test
Oct 7, 2019
Merged

Fix reparent test.#5266
enisoc merged 1 commit intovitessio:reparent-refactorfrom
planetscale:fix-reparent-test

Conversation

@enisoc
Copy link
Member

@enisoc enisoc commented Oct 4, 2019

The new TER in wrangler skipped setting the master term start time.
Now we start a master term if ChangeType() is called with type MASTER.

Also switched shard_sync from SlaveWasRestarted() to ChangeType() after realizing ChangeType() already does what I wanted. SlaveWasRestarted() is a legacy API that actually isn't needed anymore because its purpose is to update topo fields that no longer exist.

Signed-off-by: Anthony Yeh enisoc@planetscale.com

The new TER in wrangler skipped setting the master term start time.
Now we start a master term if ChangeType() is called with type MASTER.

Signed-off-by: Anthony Yeh <enisoc@planetscale.com>
@enisoc enisoc requested a review from deepthi October 4, 2019 23:20
@enisoc enisoc requested a review from sougou as a code owner October 4, 2019 23:20
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.

LGTM

@enisoc
Copy link
Member Author

enisoc commented Oct 7, 2019

Remaining broken tests after this fix are unit, unit_race, and vtgate_buffer. I'll look into these next.

@enisoc enisoc merged commit aa81ae3 into vitessio:reparent-refactor Oct 7, 2019
@enisoc enisoc deleted the fix-reparent-test branch October 7, 2019 22:05
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