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

Clear completed, partial blocks on generator startup #3704

Merged
merged 2 commits into from
May 23, 2024

Conversation

zalegrala
Copy link
Contributor

@zalegrala zalegrala commented May 22, 2024

What this PR does:

If a meta.json for a completed block on the generator fails to parse correctly, the instance never comes up cleanly. Here we add a condition to check if the error is a *json.SyntaxError, and ensure we also clear the local block on startup.

Checklist

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

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
zalegrala Zach Leslie

Verified

This commit was signed with the committer’s verified signature. The key has expired.
zalegrala Zach Leslie
@zalegrala zalegrala merged commit 7c2e7c7 into grafana:main May 23, 2024
14 checks passed
@zalegrala zalegrala deleted the partialBlockGeneratorClear branch June 17, 2024 13:50
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.

None yet

2 participants