{"record":{"id":"2e1711eb8adfef16","repo":"hashicorp/nomad","slug":"evaluation-does-not-exist-to-be-reblocked","errorCode":null,"errorMessage":"evaluation does not exist to be reblocked","messagePattern":"evaluation does not exist to be reblocked","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"scheduler/structs/structs.go","lineNumber":227,"sourceCode":"\tp.CreateEvals = append(p.CreateEvals, eval)\n\n\treturn nil\n}\n\nfunc (p *PlanBuilder) ReblockEval(eval *structs.Evaluation) error {\n\t// Ensure sequential plan application\n\tp.planLock.Lock()\n\tdefer p.planLock.Unlock()\n\n\t// Check that the evaluation was already blocked.\n\tws := memdb.NewWatchSet()\n\told, err := p.State.EvalByID(ws, eval.ID)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif old == nil {\n\t\treturn fmt.Errorf(\"evaluation does not exist to be reblocked\")\n\t}\n\tif old.Status != structs.EvalStatusBlocked {\n\t\treturn fmt.Errorf(\"evaluation %q is not already in a blocked state\", old.ID)\n\t}\n\n\tp.ReblockEvals = append(p.ReblockEvals, eval)\n\treturn nil\n}\n\nfunc (p *PlanBuilder) ServersMeetMinimumVersion(_ *version.Version, _ bool) bool {\n\treturn p.serversMeetMinimumVersion\n}\n\n// NextIndex returns the next index\nfunc (p *PlanBuilder) NextIndex() uint64 {\n\tp.nextIndexLock.Lock()\n\tdefer p.nextIndexLock.Unlock()\n\tidx := p.nextIndex","sourceCodeStart":209,"sourceCodeEnd":245,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/scheduler/structs/structs.go#L209-L245","documentation":"PlanBuilder guard in ReblockEval: the evaluation to re-block does not exist in the state store, so it cannot transition back to blocked. Indicates a stale or already-GC'd eval was submitted for reblocking.","triggerScenarios":"Thrown at scheduler/structs/structs.go:227 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the eval ID still exists before re-blocking","Skip reblocking evals that may have been garbage-collected"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"482b49bf1aec006f089bcfc7e632d8f6ac303e5e","analyzedAt":"2026-09-04T07:54:14.808Z","contentChangedAt":"2026-09-04T07:54:14.808Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}