Skip to content

Conversation

@alanprot
Copy link
Member

@alanprot alanprot commented Jul 5, 2023

What this PR does:
Fix objstore retry when uploading markers.

These operations were not being retried as we were wrapping the original io.Reader into a bytes.NewBuffer which is not seek-able. The fix is simply to wrap them into a bytes.NewReader instead bytes.NewBuffer.

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]

Signed-off-by: Alan Protasio <[email protected]>
@alanprot alanprot marked this pull request as ready for review July 5, 2023 18:50
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Changes LGTM

@alanprot alanprot enabled auto-merge (squash) July 5, 2023 19:23
@alanprot alanprot force-pushed the fix/retry branch 3 times, most recently from eec3149 to d328ba2 Compare July 5, 2023 23:03
Signed-off-by: Alan Protasio <[email protected]>
@alanprot alanprot merged commit 81fcf88 into cortexproject:master Jul 5, 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.

3 participants