{"record":{"id":"322ee0cb7a607361","repo":"weaviate/weaviate","slug":"commit-w","errorCode":null,"errorMessage":"commit: %w","messagePattern":"commit: %w","errorType":"http","errorClass":null,"httpStatus":500,"severity":"error","filePath":"adapters/handlers/rest/clusterapi/backups.go","lineNumber":93,"sourceCode":"\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tbody, err := io.ReadAll(r.Body)\n\t\tif err != nil {\n\t\t\tstatus := http.StatusInternalServerError\n\t\t\thttp.Error(w, fmt.Errorf(\"read request body: %w\", err).Error(), status)\n\t\t\treturn\n\t\t}\n\t\tdefer r.Body.Close()\n\n\t\tvar req backup.StatusRequest\n\t\tif err := json.Unmarshal(body, &req); err != nil {\n\t\t\tstatus := http.StatusInternalServerError\n\t\t\thttp.Error(w, fmt.Errorf(\"unmarshal request: %w\", err).Error(), status)\n\t\t\treturn\n\t\t}\n\n\t\tif err := b.manager.OnCommit(r.Context(), &req); err != nil {\n\t\t\tstatus := http.StatusInternalServerError\n\t\t\thttp.Error(w, fmt.Errorf(\"commit: %w\", err).Error(), status)\n\t\t\treturn\n\t\t}\n\n\t\tw.WriteHeader(http.StatusCreated)\n\t})\n}\n\nfunc (b *backups) Abort() http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tbody, err := io.ReadAll(r.Body)\n\t\tif err != nil {\n\t\t\tstatus := http.StatusInternalServerError\n\t\t\thttp.Error(w, fmt.Errorf(\"read request body: %w\", err).Error(), status)\n\t\t\treturn\n\t\t}\n\t\tdefer r.Body.Close()\n\n\t\tvar req backup.AbortRequest","sourceCodeStart":75,"sourceCodeEnd":111,"githubUrl":"https://github.com/weaviate/weaviate/blob/75aa4b6d11f8818305aafd4440b4e32794f7ca04/adapters/handlers/rest/clusterapi/backups.go#L75-L111","documentation":"Wraps backup.manager.OnCommit failure in the cluster-API commit handler: the request body parsed as a backup.StatusRequest, but the local backup manager rejected or failed the commit step (invalid backup state transition, coordinator error, or storage failure). Surfaced as an HTTP 500 to the coordinating node, which then fails the backup transaction.","triggerScenarios":"Thrown at adapters/handlers/rest/clusterapi/backups.go:93 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the participant node's backup manager logs for the OnCommit failure","Verify backup bucket/path accessibility","Retry the backup once the underlying issue is resolved"],"exampleFix":null,"handlingStrategy":"try-catch","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"}