{"record":{"id":"6b6532dc5f118cca","repo":"thanos-io/thanos","slug":"sync-6b6532","errorCode":null,"errorMessage":"sync","messagePattern":"sync","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/compact/compact.go","lineNumber":1568,"sourceCode":"\t\t\t\t\t\t\tmetadata.OutOfOrderChunksNoCompactReason,\n\t\t\t\t\t\t\t\"OutofOrderChunk: marking block with out-of-order series/chunks to as no compact to unblock compaction\", g.blocksMarkedForNoCompact); err == nil {\n\t\t\t\t\t\t\tmtx.Lock()\n\t\t\t\t\t\t\tfinishedAllGroups = false\n\t\t\t\t\t\t\tmtx.Unlock()\n\t\t\t\t\t\t\tcontinue\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\terrChan <- errors.Wrapf(err, \"group %s\", g.Key())\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\n\t\t// Blocks that were compacted are garbage collected after each Compaction.\n\t\t// However if compactor crashes we need to resolve those on startup.\n\t\tlevel.Info(c.logger).Log(\"msg\", \"start initial sync of metas\")\n\t\tif err := c.sy.SyncMetas(ctx); err != nil {\n\t\t\treturn errors.Wrap(err, \"sync\")\n\t\t}\n\n\t\tvar ignoreBlocks map[ulid.ULID]struct{}\n\t\tif c.blocksCleaner != nil {\n\t\t\tdeletedBlocks, err := c.blocksCleaner.DeleteMarkedBlocks(ctx)\n\t\t\tif err != nil {\n\t\t\t\treturn errors.Wrap(err, \"cleaning marked blocks\")\n\t\t\t}\n\t\t\tignoreBlocks = deletedBlocks\n\t\t}\n\n\t\tlevel.Info(c.logger).Log(\"msg\", \"start of initial garbage collection\")\n\t\tif err := c.sy.GarbageCollect(ctx, ignoreBlocks); err != nil {\n\t\t\treturn errors.Wrap(err, \"garbage\")\n\t\t}\n\n\t\tgroups, err := c.grouper.Groups(c.sy.Metas())\n\t\tif err != nil {","sourceCodeStart":1550,"sourceCodeEnd":1586,"githubUrl":"https://github.com/thanos-io/thanos/blob/35b8b991177def87ed52dcf10f9b6d87f07282c8/pkg/compact/compact.go#L1550-L1586","documentation":"Wraps sy.SyncMetas during the compactor's initial metadata sync: downloading/refreshing block metadata from object storage failed (bucket auth, network, corrupt meta.json). The compaction loop cannot plan without a consistent view of the bucket's blocks.","triggerScenarios":"Thrown at pkg/compact/compact.go:1568 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check object store connectivity and permissions","Inspect wrapped fetcher errors for failing blocks","Retry after transient failures"],"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"}