Skip to content

added fix for e2e intermittent test failure#5479

Merged
sougou merged 2 commits intovitessio:masterfrom
planetscale:fix_e2e_test_fail
Nov 28, 2019
Merged

added fix for e2e intermittent test failure#5479
sougou merged 2 commits intovitessio:masterfrom
planetscale:fix_e2e_test_fail

Conversation

@arindamnayak
Copy link
Copy Markdown
Contributor

@arindamnayak arindamnayak commented Nov 27, 2019

Signed-off-by: Arindam Nayak arindam.nayak@outlook.com.

Fix Description: Earlier, when we start vtgate, we were not waiting till all tablets are reported healthy to vtgate, that is why test was failing intermittently for some of testcases. With current fix, it will wait before executing any of testcases.

Signed-off-by: Arindam Nayak <arindam.nayak@outlook.com>
@arindamnayak arindamnayak requested a review from sougou as a code owner November 27, 2019 10:33
return cluster.VtgateProcess.Setup()
err = cluster.VtgateProcess.Setup()
if err != nil {
return
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't this return the error?

for _, keyspace := range cluster.Keyspaces {
for _, shard := range keyspace.Shards {
isRdOnlyPresent = false
_ = cluster.VtgateProcess.WaitForStatusOfTabletInShard(fmt.Sprintf("%s.%s.master", keyspace.Name, shard.Name))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here. It's better to return an error here and propagate it up the call stack.
And same comments below.

Signed-off-by: Arindam Nayak <arindam.nayak@outlook.com>
@sougou sougou merged commit f554089 into vitessio:master Nov 28, 2019
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