{"record":{"id":"9ecad694199e693d","repo":"hyperledger/fabric","slug":"unexpected-close-of-commit-notification-channel","errorCode":null,"errorMessage":"unexpected close of commit notification channel","messagePattern":"unexpected close of commit notification channel","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/pkg/gateway/commit/finder.go","lineNumber":69,"sourceCode":"\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tif code, blockNumber, err := ledger.GetTxValidationCodeByTxID(transactionID); err == nil {\n\t\tstatus := &Status{\n\t\t\tBlockNumber:   blockNumber,\n\t\t\tTransactionID: transactionID,\n\t\t\tCode:          code,\n\t\t}\n\t\treturn status, nil\n\t}\n\n\tselect {\n\tcase <-ctx.Done():\n\t\treturn nil, ctx.Err()\n\tcase status, ok := <-statusReceive:\n\t\tif !ok {\n\t\t\treturn nil, errors.New(\"unexpected close of commit notification channel\")\n\t\t}\n\t\treturn status, nil\n\t}\n}\n","sourceCodeStart":51,"sourceCodeEnd":74,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/internal/pkg/gateway/commit/finder.go#L51-L74","documentation":"TransactionStatus guard: after registering for commit notifications and finding no existing validation code, the statusReceive channel was closed by the sender (commit notifier) before delivering a status, so the select received ok=false. It means the peer stopped delivering commit events for that transaction — an unexpected server-side condition, not a client cancellation.","triggerScenarios":"Thrown at internal/pkg/gateway/commit/finder.go:69 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-query the transaction's validation code via the ledger as a fallback","Check peer health and deliver/commit service logs","Retry the submit/commit-status flow if the connection was re-established"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2736b63f8fd5932511d56fe68b7039d15977f7f6","analyzedAt":"2026-09-04T08:52:36.465Z","contentChangedAt":"2026-09-04T08:52:36.465Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}