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 block downloader test #11723

Merged
merged 1 commit into from
Jan 19, 2024
Merged

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented Jan 19, 2024

What this PR does / why we need it:

The flaky test is caused by a race condition caused by concurrent writes of a counter that is used to track how often a method was called.

Fixed by converting into an atomic integer.

The flaky test is caused by a race condition caused by concurrent writes
of a counter that is used to track how often a method was called.

Fixed by converting into an atomic integer.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
@chaudum chaudum requested a review from a team as a code owner January 19, 2024 20:32
@chaudum chaudum enabled auto-merge (squash) January 19, 2024 20:32
@chaudum chaudum merged commit 522efb9 into main Jan 19, 2024
10 checks passed
@chaudum chaudum deleted the chaudum/fix-flaky-blockdownload-test branch January 19, 2024 20:46
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
The flaky test is caused by a race condition caused by concurrent writes
of a counter that is used to track how often a method was called.

Fixed by converting into an atomic integer.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants