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

added fix for e2e intermittent test failure #5479

Merged
merged 2 commits into from
Nov 28, 2019

Conversation

arindamnayak
Copy link
Contributor

@arindamnayak arindamnayak commented Nov 27, 2019

Signed-off-by: Arindam Nayak [email protected].

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.

@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
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
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 <[email protected]>
@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