{"record":{"id":"44fde405ec20e999","repo":"quickwit-oss/quickwit","slug":"quickwit-was-compiled-without-the-pulsar-feature","errorCode":null,"errorMessage":"Quickwit was compiled without the `pulsar` feature","messagePattern":"Quickwit was compiled without the `pulsar` feature","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"quickwit/quickwit-indexing/src/source/mod.rs","lineNumber":488,"sourceCode":"                kafka_source::check_connectivity(params.clone()).await?;\n                Ok(())\n            }\n        }\n        #[allow(unused_variables)]\n        SourceParams::Kinesis(params) => {\n            #[cfg(not(feature = \"kinesis\"))]\n            anyhow::bail!(\"Quickwit was compiled without the `kinesis` feature\");\n\n            #[cfg(feature = \"kinesis\")]\n            {\n                kinesis::check_connectivity(params.clone()).await?;\n                Ok(())\n            }\n        }\n        #[allow(unused_variables)]\n        SourceParams::Pulsar(params) => {\n            #[cfg(not(feature = \"pulsar\"))]\n            anyhow::bail!(\"Quickwit was compiled without the `pulsar` feature\");\n\n            #[cfg(feature = \"pulsar\")]\n            {\n                pulsar_source::check_connectivity(params).await?;\n                Ok(())\n            }\n        }\n        _ => Ok(()),\n    }\n}\n\n#[derive(Debug)]\npub struct SuggestTruncate(pub SourceCheckpoint);\n\n#[async_trait]\nimpl Handler<SuggestTruncate> for SourceActor {\n    type Reply = ();\n","sourceCodeStart":470,"sourceCodeEnd":506,"githubUrl":"https://github.com/quickwit-oss/quickwit/blob/a39730c5cdcd1a4fe798403737ae293999ea21f8/quickwit/quickwit-indexing/src/source/mod.rs#L470-L506","documentation":"Feature-gating error for Pulsar: check_source_connectivity bails when it encounters SourceParams::Pulsar in a binary compiled without the `pulsar` cargo feature. The Pulsar source and its connectivity check are absent from the compiled artifact.","triggerScenarios":"Calling check_source_connectivity (via run_index_checklist, add_source, update_source, or the REST test-connectivity endpoint) on a Pulsar source when the binary lacks the `pulsar` feature.","commonSituations":"Custom or minimal Quickwit builds omitting the pulsar feature; index configs referencing pulsar:// topics applied to a build without Pulsar support; CI building with a reduced feature set.","solutions":["Rebuild Quickwit with `--features pulsar`.","Remove the Pulsar source from the index configuration if not required.","Use a build/profile that includes all required source features for the deployment environment."],"exampleFix":"// before\ncargo build --release\n// after\ncargo build --release --features pulsar","handlingStrategy":"validation","validationCode":"// Verify Pulsar support before applying a pulsar source config\nif !quickwit_build_has_feature(\"pulsar\") {\n    return Err(anyhow::anyhow!(\"binary lacks `pulsar` feature; rebuild with --features pulsar\"));\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Enable all needed source features in the deployment build profile.","Validate source types at config-load time so failures surface before runtime.","Keep CI release builds aligned with the features used by production configs."],"tags":["pulsar","compile-time-feature","source-connectivity","rust"],"backgroundTag":"missing-optional-dependency","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"}