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

fix: flaky prefetcher tests #8255

Merged
merged 3 commits into from
Dec 21, 2022
Merged

Conversation

jakmeier
Copy link
Contributor

Prefetcher tests have become flaky in CI lately, failing with
"unexpected number of prefetched values".

I was not able to reproduce it locally. But there is a timeout that
is at least one source for flakyness. This commit removes this
source by properly waiting on the background threads to finish
instead of relying on a timeout.

Hopefully resolves #8252. (Will have to reopen if not.)

Prefetcher tests have become flaky in CI lately, failing with
`"unexpected number of prefetched values"`.

I was not able to reproduce it locally. But there is a timeout that
is at least one source for flakyness. This commit removes this
source by properly waiting on the background threads to finish
instead of relying on a timeout.

Hopefully resolves  near#8252. (Will have to reopen if not.)
@jakmeier jakmeier requested a review from Longarithm December 20, 2022 15:51
@jakmeier jakmeier requested a review from a team as a code owner December 20, 2022 15:51
// causes all background threads to stop after they finish the current
// work. It will even join them and wait until all threads are done.
//
// Because threads are joined, there is also a possibility this will
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: is it worth clarifying what this refers to here? Maybe replace it with drop(tries)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes makes sense, updated now.

@jakmeier
Copy link
Contributor Author

This needs a code owner approval before I can merge it. @Longarithm or @akhi3030 maybe?

@near-bulldozer near-bulldozer bot merged commit d57ae75 into near:master Dec 21, 2022
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.

Storage prefetch tests are flaky
3 participants