{"record":{"id":"47390ec550cc906f","repo":"influxdata/influxdb","slug":"disabling-lifo-slot-requires-tokio-unstable","errorCode":null,"errorMessage":"disabling LIFO slot requires `tokio_unstable`","messagePattern":"disabling LIFO slot requires `tokio_unstable`","errorType":"exception","errorClass":"std::io::Error","httpStatus":null,"severity":"error","filePath":"influxdb3_clap_blocks/src/tokio.rs","lineNumber":207,"sourceCode":"                        format!(\"InfluxDB 3 Core Tokio {} {}\", name, thread_counter.fetch_add(1, Ordering::SeqCst))\n                    });\n\n                    // worker thread count\n                    let num_threads = match self.num_threads {\n                        None => std::thread::available_parallelism()\n                            .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?,\n                        Some(n) => n,\n                    };\n                    builder.worker_threads(num_threads.get());\n\n                    if self.disable_lifo == Some(true) {\n                        #[cfg(tokio_unstable)]\n                        {\n                            builder.disable_lifo_slot();\n                        }\n                        #[cfg(not(tokio_unstable))]\n                        {\n                            return Err(std::io::Error::new(\n                                std::io::ErrorKind::Other,\n                                \"disabling LIFO slot requires `tokio_unstable`\",\n                            ));\n                        }\n                    }\n\n                    if let Some(x) = self.event_interval {\n                        builder.event_interval(x.get());\n                    }\n\n                    if let Some(x) = self.global_queue_interval {\n                        builder.global_queue_interval(x.get());\n                    }\n\n                    if let Some(x) = self.max_blocking_threads {\n                        builder.max_blocking_threads(x.get());\n                    }\n","sourceCodeStart":189,"sourceCodeEnd":225,"githubUrl":"https://github.com/influxdata/influxdb/blob/06200ef96ba82c5f6727e5038a83af8e722c6875/influxdb3_clap_blocks/src/tokio.rs#L189-L225","documentation":"Disabling Tokio's LIFO slot is an unstable API guarded by tokio_unstable. influxdb3_clap_blocks honors the disable_lifo option only when that cfg is enabled; otherwise it returns an io::Error stating the requirement, and runtime construction fails.","triggerScenarios":"Setting disable_lifo = true in the Tokio runtime options (e.g. InfluxDB 3 runtime tuning config) on a build compiled without RUSTFLAGS='--cfg tokio_unstable'.","commonSituations":"Copying latency-tuned configs (disable LIFO slot) into standard stable builds; Kubernetes deployments consuming images built without the unstable flag while the config disables LIFO.","solutions":["Rebuild with RUSTFLAGS=\"--cfg tokio_unstable\" to enable the unstable disable_lifo_slot API.","Remove the disable_lifo setting (or set it to false) from the runtime configuration.","If LIFO behavior is required without unstable tokio, upgrade/switch to a build where the needed behavior is stable."],"exampleFix":"// before (config)\n[experience]\ndisable_lifo = true\n// after\ndisable_lifo = false  # or rebuild with RUSTFLAGS=\"--cfg tokio_unstable\"","handlingStrategy":"validation","validationCode":"fn validate_disable_lifo(disable_lifo: Option<bool>) -> Result<(), String> {\n    if disable_lifo == Some(true) && !cfg!(tokio_unstable) {\n        return Err(\"disable_lifo=true requires tokio_unstable build\".into());\n    }\n    Ok(())\n}","typeGuard":"fn lifo_disable_supported() -> bool { cfg!(tokio_unstable) }","tryCatchPattern":"match build_runtime(opts) {\n    Err(e) if e.to_string().contains(\"LIFO\") => build_runtime(opts.without_disable_lifo()),\n    other => other,\n}","preventionTips":["Only enable disable_lifo in images built with RUSTFLAGS=\"--cfg tokio_unstable\".","Gate tuned latency configs behind build-flavor checks.","Document the unstable-flag requirement next to the config option."],"tags":["tokio","tokio-unstable","lifo","configuration"],"backgroundTag":"feature-not-enabled","analyzedSha":"06200ef96ba82c5f6727e5038a83af8e722c6875","analyzedAt":"2026-09-19T12:55:30.003Z","contentChangedAt":"2026-09-19T12:55:30.003Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}