{"record":{"id":"c24f99ca103a7d0d","repo":"quickwit-oss/quickwit","slug":"quickwit-was-compiled-without-the-sqs-feature-c24f99","errorCode":null,"errorMessage":"Quickwit was compiled without the `sqs` feature","messagePattern":"Quickwit was compiled without the `sqs` feature","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"quickwit/quickwit-indexing/src/source/mod.rs","lineNumber":455,"sourceCode":"}\n\npub async fn check_source_connectivity(\n    storage_resolver: &StorageResolver,\n    source_config: &SourceConfig,\n) -> anyhow::Result<()> {\n    match &source_config.source_params {\n        SourceParams::File(FileSourceParams::Filepath(file_uri)) => {\n            let (dir_uri, file_name) = dir_and_filename(file_uri)?;\n            let storage = storage_resolver.resolve(&dir_uri).await?;\n            storage.file_num_bytes(file_name).await?;\n            Ok(())\n        }\n        #[allow(unused_variables)]\n        SourceParams::File(FileSourceParams::Notifications(FileSourceNotification::Sqs(\n            sqs_config,\n        ))) => {\n            #[cfg(not(feature = \"sqs\"))]\n            anyhow::bail!(\"Quickwit was compiled without the `sqs` feature\");\n\n            #[cfg(feature = \"sqs\")]\n            {\n                queue_sources::sqs_queue::check_connectivity(&sqs_config.queue_url).await?;\n                Ok(())\n            }\n        }\n        #[allow(unused_variables)]\n        SourceParams::Kafka(params) => {\n            #[cfg(not(feature = \"kafka\"))]\n            anyhow::bail!(\"Quickwit was compiled without the `kafka` feature\");\n\n            #[cfg(feature = \"kafka\")]\n            {\n                kafka_source::check_connectivity(params.clone()).await?;\n                Ok(())\n            }\n        }","sourceCodeStart":437,"sourceCodeEnd":473,"githubUrl":"https://github.com/quickwit-oss/quickwit/blob/a39730c5cdcd1a4fe798403737ae293999ea21f8/quickwit/quickwit-indexing/src/source/mod.rs#L437-L473","documentation":"During source connectivity checking, a file source with SQS notifications cannot be validated when Quickwit was built without the `sqs` cargo feature. `check_source_connectivity` bails instead of calling the feature-gated `sqs_queue::check_connectivity`.","triggerScenarios":"Running `quickwit source check-connectivity` (or checklist/add-source/update-source flows that call it) for a source whose params are `FileSourceParams::Notifications(FileSourceNotification::Sqs(_))` on a binary compiled with `#[cfg(not(feature = \"sqs\"))]`.","commonSituations":"Minimal/custom Quickwit build without the `sqs` feature validating an index that uses SQS-driven file sources; CI builds with reduced feature sets.","solutions":["Rebuild Quickwit with the `sqs` feature enabled (`cargo build --features sqs`) or use the official release binary/image.","Skip SQS connectivity checks for this build, or switch the source away from SQS notifications."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"// detect feature support before validating SQS sources\nquickwit version # confirm official build; custom builds must include --features sqs","typeGuard":null,"tryCatchPattern":"// skip SQS checks gracefully on feature-less builds\nmatch check_source_connectivity(...) {\n    Err(e) if e.to_string().contains(\"sqs feature\") => warn_and_skip(),\n    other => other?,\n}","preventionTips":["Standardize on release builds containing all source features.","Maintain a build-feature checklist matched to deployed source types.","Run connectivity checks with the same binary that runs production."],"tags":["compile-time-feature","sqs","connectivity-check","rust"],"backgroundTag":"feature-not-enabled","analyzedSha":"a39730c5cdcd1a4fe798403737ae293999ea21f8","analyzedAt":"2026-09-08T13:19:37.784Z","contentChangedAt":"2026-09-08T13:19:37.784Z","schemaVersion":2},"datasetVersion":"2026-09-14T16:17:12.679Z"}