{"record":{"id":"c5979e4ec8ed7d6b","repo":"risingwavelabs/risingwave","slug":"task-aborted-0","errorCode":null,"errorMessage":"Task aborted: {0}","messagePattern":"Task aborted: (.+?)","errorType":"error_code","errorClass":"BatchError","httpStatus":null,"severity":"error","filePath":"src/batch/src/error.rs","lineNumber":81,"sourceCode":"\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]\n        #[backtrace]\n        RpcError,\n    ),\n\n    #[error(\"Connector error: {0}\")]\n    Connector(\n        #[source]\n        #[backtrace]\n        BoxedError,\n    ),","sourceCodeStart":63,"sourceCodeEnd":99,"githubUrl":"https://github.com/risingwavelabs/risingwave/blob/6469eb736d691e8e9b8a419a57edd6429ca77417/src/batch/src/error.rs#L63-L99","documentation":"BatchError::Aborted: a running batch task was cancelled before completion. The string payload records the cancellation reason (e.g. user-issued pg_cancel_backend, statement timeout, or shutdown). It fires when the executor observes its cancel token or receives a stop signal mid-scan/join/aggregate and unwinds with this diagnostic rather than a generic panic.","triggerScenarios":"Thrown at src/batch/src/error.rs:81 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Surface the abort reason to the client as QueryCancelled rather than an internal error","Ensure executors check cancellation tokens periodically so they stop promptly","If aborts stem from timeouts, tune statement_timeout or the query plan to finish faster"],"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"}