Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit dca7a86

Browse files
authored
Merge pull request #357 from grafana/clarify-compactor-corruption
Clarify data loss related to 'not healthy index found' issue
2 parents 0b75ccd + dd18202 commit dca7a86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cortex-mixin/docs/playbooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ level=error ts=2020-07-12T17:35:05.516823471Z caller=compactor.go:339 component=
354354
```
355355

356356
When this happen you should:
357-
1. Rename the block prefixing it with `corrupted-` so that it will be skipped by the compactor and queriers. Keep in mind that doing so the block will become invisible to the queriers too, so its series/samples will not be queried. It's safe to do it on a single block with compaction level 1 (because of the samples replication), but not on multiple overlapping level 1 blocks or any block with a compaction level > 1.
357+
1. Rename the block prefixing it with `corrupted-` so that it will be skipped by the compactor and queriers. Keep in mind that doing so the block will become invisible to the queriers too, so its series/samples will not be queried. If the corruption affects only 1 block whose compaction `level` is 1 (the information is stored inside its `meta.json`) then Cortex guarantees no data loss because all the data is replicated across other blocks. In all other cases, there may be some data loss once you rename the block and stop querying it.
358358
2. Ensure the compactor has recovered
359359
3. Investigate offline the root cause (eg. download the corrupted block and debug it locally)
360360

0 commit comments

Comments
 (0)