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

Handle invalid TraceQL query filter in tag values v2 disk cache #4392

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

electron0zero
Copy link
Member

@electron0zero electron0zero commented Nov 27, 2024

What this PR does:
In case of a bad TraceQL query, disk cache for search tag values v2 endpoints would fail to set and get cache.

bug was that we returned "" as cache key when we failed to parse the TraceQL filter query.

Invalid filter TraceQL query is treated as empty query in the tag values v2 endpoint so follow the same semantics for disk cache.

I also added some tests for search tag values v2 to make sure we test for the invalid TraceQL query behaviour.

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]

@electron0zero electron0zero changed the title handle invalid TraceQL query filter in tag values v2 disk cache Handle invalid TraceQL query filter in tag values v2 disk cache Nov 27, 2024
@electron0zero electron0zero merged commit e9ecc3e into grafana:main Nov 27, 2024
16 checks passed
@electron0zero electron0zero deleted the getdisk_failed branch November 27, 2024 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants