{"record":{"id":"90cdf8133d5962a3","repo":"risingwavelabs/risingwave","slug":"0-90cdf8","errorCode":null,"errorMessage":"{0}","messagePattern":"\\{0\\}","errorType":"exception","errorClass":"SchemaFetchError::YetToMigrate","httpStatus":null,"severity":"error","filePath":"src/connector/src/schema/mod.rs","lineNumber":65,"sourceCode":"    #[error(transparent)]\n    InvalidOption(#[from] InvalidOptionError),\n    #[error(transparent)]\n    License(#[from] risingwave_common::license::FeatureNotAvailable),\n    #[error(transparent)]\n    Request(#[from] schema_registry::ConcurrentRequestError),\n    #[error(transparent)]\n    AwsGlue(#[from] Box<aws_sdk_glue::operation::get_schema_version::GetSchemaVersionError>),\n    #[error(transparent)]\n    MalformedResponse(#[from] MalformedResponseError),\n    #[error(\"schema version id invalid: {0}\")]\n    InvalidUuid(#[from] uuid::Error),\n    #[error(\"schema compilation error: {0}\")]\n    SchemaCompile(\n        #[source]\n        #[backtrace]\n        risingwave_common::error::BoxedError,\n    ),\n    #[error(\"{0}\")] // source+{0} is effectively transparent but allows backtrace\n    YetToMigrate(\n        #[source]\n        #[backtrace]\n        ConnectorError,\n    ),\n    #[error(\"schema registry client error: {0}\")]\n    Client(#[from] schema_registry::SchemaRegistryClientError),\n}\n","sourceCodeStart":47,"sourceCodeEnd":74,"githubUrl":"https://github.com/risingwavelabs/risingwave/blob/6469eb736d691e8e9b8a419a57edd6429ca77417/src/connector/src/schema/mod.rs#L47-L74","documentation":"SchemaFetchError::YetToMigrate wraps a ConnectorError transparently (message = inner message, with source and backtrace preserved). It marks schema-fetch failures originating from connector-layer errors that are pending migration to the typed error taxonomy.","triggerScenarios":"Any ConnectorError surfaced during schema fetching that hasn't been mapped to a dedicated SchemaFetchError variant — e.g. connector parse/config errors during schema resolution.","commonSituations":"Mixed failures while setting up schema-registry sources: bad connector options, I/O errors reading schema files, all funneled through this catch-all variant.","solutions":["Read the wrapped ConnectorError message and source chain for the root cause.","Fix the underlying connector-level issue (options, network, file path).","If developing, migrate this path to a dedicated SchemaFetchError variant for better diagnostics."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"match fetch_schema() {\n    Err(e) if matches!(e.to_string(), _ if is_yet_to_migrate(&e)) => {\n        // unwrap the inner ConnectorError and follow its message/source chain\n    }\n    Err(e) => return Err(e.into()),\n    Ok(s) => s,\n}","preventionTips":["Treat the wrapped message as a connector-layer error and debug accordingly.","Track RisingWave releases where this variant is migrated to typed errors.","Capture the full error chain (source/backtrace) in logs."],"tags":["schema","connector","error-wrapper"],"backgroundTag":"internal-invariant-violation","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"}