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

Bug fix relating to Cluster Seed File #1625

Merged
merged 3 commits into from
Aug 8, 2022
Merged

Bug fix relating to Cluster Seed File #1625

merged 3 commits into from
Aug 8, 2022

Conversation

ie-pham
Copy link
Contributor

@ie-pham ie-pham commented Aug 8, 2022

What this PR does: This PR fixes an issue for GCS when anonymous usage stats is enabled. Due to the cluster seed file being in the same folder, an incorrect tenant id of an empty string gets returned in the List() call.

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]

tempodb/backend/raw.go Outdated Show resolved Hide resolved
@ie-pham ie-pham marked this pull request as ready for review August 8, 2022 17:51
@zalegrala zalegrala merged commit 4e48657 into grafana:main Aug 8, 2022
list, err := r.r.List(ctx, nil)

// this filter is added to fix a GCS usage stats issue that would result in ""
var filteredList []string
Copy link
Member

Choose a reason for hiding this comment

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

@zalegrala @ie-pham

minor but we should have preallocated this slice to match the tenants length.

a test on this behavior also would have been nice.

@ie-pham ie-pham deleted the jennie/tenant_id_fix branch March 17, 2023 17:31
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.

4 participants