Skip to content

Vreplication flaky test: make vcopier test non-flaky#6001

Merged
sougou merged 7 commits intovitessio:masterfrom
planetscale:rn-vcopier-flaky-test
Apr 3, 2020
Merged

Vreplication flaky test: make vcopier test non-flaky#6001
sougou merged 7 commits intovitessio:masterfrom
planetscale:rn-vcopier-flaky-test

Conversation

@rohit-nayak-ps
Copy link
Copy Markdown
Member

The copy-catchup-fast-forward phases in the vreplication flow have different timeouts that determine how long a phase may last. This can result in extra transactions that update pos. The flakiness in vcopier_test.go was because we were incorrectly expecting a specific sequence of sql statements in a couple of tests.

Changing it to expect only the key sql statements and ignoring non-transaction queries has fixed the flakiness.

Additionally SecondsBehindMaster is now set correctly after the events are applied.

Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
@rohit-nayak-ps rohit-nayak-ps requested a review from sougou as a code owner April 1, 2020 11:32
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
…e causing races since they continued to run

Signed-off-by: Rohit Nayak <rohit@planetscale.com>
…t times out

Signed-off-by: Rohit Nayak <rohit@planetscale.com>
@sougou
Copy link
Copy Markdown
Contributor

sougou commented Apr 2, 2020

gofmt failed

1 similar comment
@sougou
Copy link
Copy Markdown
Contributor

sougou commented Apr 2, 2020

gofmt failed

Signed-off-by: Rohit Nayak <rohit@planetscale.com>
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