{"record":{"id":"d3aea0a19c0ef4c3","repo":"risingwavelabs/risingwave","slug":"mongodb-error-0","errorCode":null,"errorMessage":"Mongodb error: {0}","messagePattern":"Mongodb error: (.+?)","errorType":"exception","errorClass":"SinkError","httpStatus":null,"severity":"error","filePath":"src/connector/src/sink/mod.rs","lineNumber":1232,"sourceCode":"    #[error(\"Postgres error: {0}\")]\n    Postgres(\n        #[source]\n        #[backtrace]\n        anyhow::Error,\n    ),\n    #[error(transparent)]\n    Connector(\n        #[from]\n        #[backtrace]\n        ConnectorError,\n    ),\n    #[error(\"Secret error: {0}\")]\n    Secret(\n        #[from]\n        #[backtrace]\n        SecretError,\n    ),\n    #[error(\"Mongodb error: {0}\")]\n    Mongodb(\n        #[source]\n        #[backtrace]\n        anyhow::Error,\n    ),\n    #[error(\"Redshift error: {0}\")]\n    Redshift(\n        #[source]\n        #[backtrace]\n        anyhow::Error,\n    ),\n}\n\n#[allow(clippy::disallowed_types)]\nimpl From<::iceberg::Error> for SinkError {\n    fn from(err: ::iceberg::Error) -> Self {\n        SinkError::Iceberg(anyhow!(err))\n    }","sourceCodeStart":1214,"sourceCodeEnd":1250,"githubUrl":"https://github.com/risingwavelabs/risingwave/blob/6469eb736d691e8e9b8a419a57edd6429ca77417/src/connector/src/sink/mod.rs#L1214-L1250","documentation":"Sentinel variant of SinkError wrapping anyhow errors from the MongoDB sink connector. Applied to all MongoDB-specific failures (client connect, command execution, BSON issues not otherwise specialized); the inner error carries the underlying cause.","triggerScenarios":"Thrown at src/connector/src/sink/mod.rs:1232 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped anyhow error for the underlying MongoDB driver failure (connection, write errors, authentication).","Verify connection URI, credentials, and write concern settings.","Retry transient network errors; fix permanent write/auth errors in configuration."],"exampleFix":null,"handlingStrategy":"retry","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"}