{"record":{"id":"95292d8bfba01409","repo":"risingwavelabs/risingwave","slug":"cancelled-0","errorCode":null,"errorMessage":"Cancelled: {0}","messagePattern":"Cancelled: (.+?)","errorType":"error_code","errorClass":"MetaError","httpStatus":null,"severity":"warning","filePath":"src/meta/src/error.rs","lineNumber":97,"sourceCode":"\n    #[error(\"table_fragment does not exist: id={0}\")]\n    FragmentNotFound(FragmentId),\n\n    #[error(\"{0} named {1} already exists{under_creation}\", under_creation = (.2).map(|_| \" and is still being created\").unwrap_or(\"\"))]\n    Duplicated(\n        &'static str,\n        String,\n        // if under creation, take streaming job id, otherwise None\n        Option<JobId>,\n    ),\n\n    #[error(\"Service unavailable: {0}\")]\n    Unavailable(#[message] String),\n\n    #[error(\"Election failed: {0}\")]\n    Election(#[source] BoxedError),\n\n    #[error(\"Cancelled: {0}\")]\n    Cancelled(String),\n\n    #[error(\"System parameters error: {0}\")]\n    SystemParams(String),\n\n    #[error(\"Session parameters error: {0}\")]\n    SessionConfig(\n        #[from]\n        #[backtrace]\n        SessionConfigError,\n    ),\n\n    #[error(transparent)]\n    Connector(\n        #[from]\n        #[backtrace]\n        ConnectorError,\n    ),","sourceCodeStart":79,"sourceCodeEnd":115,"githubUrl":"https://github.com/risingwavelabs/risingwave/blob/6469eb736d691e8e9b8a419a57edd6429ca77417/src/meta/src/error.rs#L79-L115","documentation":"The requested operation was cancelled before completion. Carries a human-readable reason string. Typically surfaces when a client disconnects, a task is aborted, or an explicit cancellation was issued.","triggerScenarios":"Client drops the RPC connection mid-request, a streaming DDL job is cancelled via `CANCEL JOBS`, internal task aborts due to shutdown or timeouts.","commonSituations":"User cancels a long-running materialized view creation, psql/CLI closed while a query ran, meta node graceful shutdown aborting in-flight work.","solutions":["Check the message for the cancellation reason.","If the user cancelled intentionally, no action needed; resubmit if the work is still wanted.","If a DDL job was cancelled, check for leftover partial state and clean up or recreate.","Retry the operation after ensuring the client stays connected for long-running requests."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"match meta_result {\n    Err(MetaError::Cancelled(reason)) => { /* inspect reason; resubmit if work is still wanted */ }\n    other => other?,\n}","preventionTips":["Keep clients connected for long-running DDL; use background job submission where possible.","Check `SHOW JOBS` before resubmitting cancelled DDL to avoid duplicates.","Handle graceful-shutdown cancellations by resuming work after restart."],"tags":["meta","cancellation","rpc"],"backgroundTag":"operation-not-supported","analyzedSha":"6469eb736d691e8e9b8a419a57edd6429ca77417","analyzedAt":"2026-09-11T21:06:21.487Z","contentChangedAt":"2026-09-11T21:06:21.487Z","schemaVersion":2},"datasetVersion":"2026-09-14T21:17:11.552Z"}