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

Heuristic fix for a flaky test: allow for some noise to pass through #8339

Conversation

shlomi-noach
Copy link
Contributor

Description

An attempt at fixing #8323

What happens in #8323 is that a update _vt.vreplication set pos= query is encountered unexpectedly. This query can appear due to heartbeat leftovers from a previous test or from a heartbeat race condition.

This PR allows for just a little bit of noise to pass through: expectDBClientQueries supports skippableOnce optional list of queries. It's OK to hit at most one of given skippable queries, once, while iterating expected queries.

Related Issue(s)

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
@shlomi-noach
Copy link
Contributor Author

shlomi-noach commented Jun 15, 2021

2 successive successful completions for unit_race. Triggering more runs.

@shlomi-noach
Copy link
Contributor Author

shlomi-noach commented Jun 15, 2021

OK this continuously/consistently passes.

@shlomi-noach shlomi-noach marked this pull request as ready for review June 15, 2021 12:04
Copy link
Contributor

@rohit-nayak-ps rohit-nayak-ps left a comment

Choose a reason for hiding this comment

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

lgtm

@rohit-nayak-ps rohit-nayak-ps merged commit 72adc19 into vitessio:main Jun 15, 2021
@rohit-nayak-ps rohit-nayak-ps deleted the flaky-test-expect-queries-allow-skippable-once branch June 15, 2021 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants