{"record":{"id":"6637106e36f5bd4e","repo":"weaviate/weaviate","slug":"write-commits-for-node-d","errorCode":null,"errorMessage":"write commits for node %d","messagePattern":"write commits for node (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"adapters/repos/db/vector/hnsw/compact/compactor.go","lineNumber":533,"sourceCode":"\tif err := c.writeGlobalCommits(walWriter, merger.GlobalCommits()); err != nil {\n\t\treturn errors.Wrap(err, \"write global commits\")\n\t}\n\n\t// Write node commits\n\tfor {\n\t\tif isAborted(shouldAbort) {\n\t\t\treturn ErrCompactionAborted\n\t\t}\n\t\tnc, err := merger.Next()\n\t\tif err != nil {\n\t\t\treturn errors.Wrap(err, \"get next from merger\")\n\t\t}\n\t\tif nc == nil {\n\t\t\tbreak\n\t\t}\n\n\t\tif err := c.writeNodeCommits(walWriter, nc); err != nil {\n\t\t\treturn errors.Wrapf(err, \"write commits for node %d\", nc.NodeID)\n\t\t}\n\t}\n\n\tif err := sfw.Commit(); err != nil {\n\t\treturn errors.Wrap(err, \"commit merged file\")\n\t}\n\n\t// Delete source files after successful merge\n\tfor _, f := range filesToMerge {\n\t\tif err := c.fs.Remove(f.Path); err != nil && !os.IsNotExist(err) {\n\t\t\tc.logger.WithField(\"file\", f.Path).Warnf(\"failed to delete source file after merge: %v\", err)\n\t\t}\n\t}\n\n\tc.logger.WithFields(logrus.Fields{\n\t\t\"action\":       \"hnsw_compactor_merge\",\n\t\t\"output\":       outFilename,\n\t\t\"merged_count\": len(filesToMerge),","sourceCodeStart":515,"sourceCodeEnd":551,"githubUrl":"https://github.com/weaviate/weaviate/blob/75aa4b6d11f8818305aafd4440b4e32794f7ca04/adapters/repos/db/vector/hnsw/compact/compactor.go#L515-L551","documentation":"HNSW compaction (mergeSorted): writing the merged commit entries for one node to the new WAL/segment file failed. The node ID identifies which entry's write failed; the compaction cycle aborts with the wrapped I/O error.","triggerScenarios":"Thrown at adapters/repos/db/vector/hnsw/compact/compactor.go:533 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"75aa4b6d11f8818305aafd4440b4e32794f7ca04","analyzedAt":"2026-09-04T14:58:20.392Z","contentChangedAt":"2026-09-04T14:58:20.392Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}