{"record":{"id":"097a7328dea81783","repo":"thanos-io/thanos","slug":"filter-blocks-marked-for-no-compaction","errorCode":null,"errorMessage":"filter blocks marked for no compaction","messagePattern":"filter blocks marked for no compaction","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/compact/compact.go","lineNumber":1737,"sourceCode":"\n\t// Workers scheduled, distribute blocks.\n\teg.Go(func() error {\n\t\tdefer close(ch)\n\n\t\tfor _, id := range blockIDs {\n\t\t\tselect {\n\t\t\tcase ch <- id:\n\t\t\t\t// Nothing to do.\n\t\t\tcase <-ctx.Done():\n\t\t\t\treturn ctx.Err()\n\t\t\t}\n\t\t}\n\n\t\treturn nil\n\t})\n\n\tif err := eg.Wait(); err != nil {\n\t\treturn errors.Wrap(err, \"filter blocks marked for no compaction\")\n\t}\n\n\tf.mtx.Lock()\n\tf.noCompactMarkedMap = noCompactMarkedMap\n\tf.mtx.Unlock()\n\n\treturn nil\n}\n","sourceCodeStart":1719,"sourceCodeEnd":1746,"githubUrl":"https://github.com/thanos-io/thanos/blob/35b8b991177def87ed52dcf10f9b6d87f07282c8/pkg/compact/compact.go#L1719-L1746","documentation":"The NoCompactMarkFilter's fetch pass failed while concurrently checking blocks for no-compact marks (worker error or context cancellation). The filter's mark map is not updated and the metadata fetch fails.","triggerScenarios":"Thrown at pkg/compact/compact.go:1737 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check bucket read permissions for mark files","Inspect wrapped worker errors","Retry the metadata fetch"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35b8b991177def87ed52dcf10f9b6d87f07282c8","analyzedAt":"2026-09-07T01:49:59.689Z","contentChangedAt":"2026-09-07T01:49:59.689Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}