{"record":{"id":"57de1d4193e3108b","repo":"risingwavelabs/risingwave","slug":"failed-to-send-result-to-channel","errorCode":null,"errorMessage":"Failed to send result to channel","messagePattern":"Failed to send result to channel","errorType":"error_code","errorClass":"BatchError","httpStatus":null,"severity":"error","filePath":"src/batch/src/error.rs","lineNumber":71,"sourceCode":"        #[backtrace]\n        ArrayError,\n    ),\n\n    #[error(\"Expr error: {0}\")]\n    Expr(\n        #[from]\n        #[backtrace]\n        ExprError,\n    ),\n\n    #[error(\"Serialize/deserialize error: {0}\")]\n    Serde(\n        #[source]\n        #[backtrace]\n        BoxedError,\n    ),\n\n    #[error(\"Failed to send result to channel\")]\n    SenderError,\n\n    #[error(transparent)]\n    Internal(\n        #[from]\n        #[backtrace]\n        anyhow::Error,\n    ),\n\n    #[error(\"Task aborted: {0}\")]\n    Aborted(String),\n\n    #[error(transparent)]\n    PbFieldNotFound(#[from] PbFieldNotFound),\n\n    #[error(transparent)]\n    RpcError(\n        #[from]","sourceCodeStart":53,"sourceCodeEnd":89,"githubUrl":"https://github.com/risingwavelabs/risingwave/blob/6469eb736d691e8e9b8a419a57edd6429ca77417/src/batch/src/error.rs#L53-L89","documentation":"BatchError::SenderError sentinel: a batch task finished and tried to send its result chunk back over the exchange channel, but the receiver had already been dropped. This fires when the downstream query stage was cancelled (user abort, timeout, higher-priority error in another fragment) while upstream workers were still producing, so mpsc::send fails with SendError.","triggerScenarios":"Thrown at src/batch/src/error.rs:71 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Treat as a benign race: if the query was intentionally cancelled, log at debug level and let the task terminate","Propagate cancellation so sibling workers stop early instead of continuing to write to a closed channel","For unexpected cases, check whether the receiver task panicked or was dropped prematurely"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6469eb736d691e8e9b8a419a57edd6429ca77417","analyzedAt":"2026-09-11T21:06:21.487Z","contentChangedAt":"2026-09-11T21:06:21.487Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}