Skip to content

fix idx out of range in request tracker#7640

Merged
danielblando merged 4 commits into
cortexproject:masterfrom
eeldaly:query-tracker-panic-fix
Jun 23, 2026
Merged

fix idx out of range in request tracker#7640
danielblando merged 4 commits into
cortexproject:masterfrom
eeldaly:query-tracker-panic-fix

Conversation

@eeldaly

@eeldaly eeldaly commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

What this PR does:
Fixes an issue where we panic due to trying to truncate a multi-byte UTF-8 character in request tracker

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]
  • docs/configuration/v1-guarantees.md updated if this PR introduces experimental flags

Signed-off-by: Essam Eldaly <eeldaly@amazon.com>
@dosubot dosubot Bot added go Pull requests that update Go code type/bug labels Jun 23, 2026
Signed-off-by: Essam Eldaly <eeldaly@amazon.com>
@danielblando

Copy link
Copy Markdown
Contributor

can you add a test case for it?

@CharlieTLe CharlieTLe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks solid. Would you mind including a test to cover this scenario?

eeldaly added 2 commits June 23, 2026 10:16
Signed-off-by: Essam Eldaly <eeldaly@amazon.com>
Signed-off-by: Essam Eldaly <eeldaly@amazon.com>
@danielblando danielblando merged commit 4cc4166 into cortexproject:master Jun 23, 2026
37 checks passed
@eeldaly eeldaly deleted the query-tracker-panic-fix branch June 23, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code size/M type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants