Skip to content

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Nov 22, 2023

What this PR does:

#5661 introduces a bug when backfilling the items. It is used in a for loop and goroutine closure, so we have to assign the variables again.

Added test cases to reproduce the issue. It could happen when we backfill more than 1 items and previous unit tests couldn't catch that.

Skipping changelog.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@yeya24
Copy link
Contributor Author

yeya24 commented Nov 22, 2023

PTAL @alanprot

Signed-off-by: Ben Ye <[email protected]>
@alanprot
Copy link
Member

nice! thanks

@yeya24 yeya24 merged commit 2d7b13a into cortexproject:master Nov 27, 2023
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