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

Got 'invalid chunk checksum' error from query #8866

Open
mecseid opened this issue Mar 22, 2023 · 0 comments
Open

Got 'invalid chunk checksum' error from query #8866

mecseid opened this issue Mar 22, 2023 · 0 comments

Comments

@mecseid
Copy link

mecseid commented Mar 22, 2023

Describe the bug
When a chunk gets corrupted, then Loki sends back an invalid chunk checksum, although the other chunks are readable.

I saw a similar issue here: #8564

To Reproduce
Steps to reproduce the behavior:

  1. Started Loki (v2.7.4)
  2. Query some log where the chunk is corrupted (like damaged or 0-sized)

Expected behavior
I think two solutions are fine as well:

  1. Delete the unreadable chunks with user confirmation, or over some admin API
  2. Skip the unreadable chunks and send back a warning message

The first one is preferred over the other because the restore operation is always an option (if has some kind of backup), but the end user doesn't want to always see a warning message about invalid chunks.

Two side note questions about this:

  • Does the compactor or table manager will find and mark these chunks if they reached the retention time?
  • When chunk deletion runs, then it will fail if a chunk missing or corrupted?

Environment:

  • Infrastructure: Kubernetes
  • Deployment tool: helm
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

No branches or pull requests

1 participant