influxdata/influxdb · error · std::io::Error
disabling LIFO slot requires `tokio_unstable`
Error message
disabling LIFO slot requires `tokio_unstable`
What it means
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.
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.
Example fix
// before (config) [experience] disable_lifo = true // after disable_lifo = false # or rebuild with RUSTFLAGS="--cfg tokio_unstable"
Defensive patterns
Strategy: validation
Validate before calling
fn validate_disable_lifo(disable_lifo: Option<bool>) -> Result<(), String> {
if disable_lifo == Some(true) && !cfg!(tokio_unstable) {
return Err("disable_lifo=true requires tokio_unstable build".into());
}
Ok(())
} Type guard
fn lifo_disable_supported() -> bool { cfg!(tokio_unstable) } Try / catch
match build_runtime(opts) {
Err(e) if e.to_string().contains("LIFO") => build_runtime(opts.without_disable_lifo()),
other => other,
} Prevention
- 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.
When it happens
Trigger: 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'.
Common situations: 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.
Related errors
- multi-thread-alt runtime requires `tokio_unstable`
- An unexpected error occurred in the client library
- base URL error
- blocking task join
- Cannot parse object store config
AI-assisted analysis of influxdata/influxdb@06200ef96b (2026-09-19).
Data as JSON: /api/errors/47390ec550cc906f.
Report an issue: GitHub.
Appendix: source
Thrown at influxdb3_clap_blocks/src/tokio.rs:207
format!("InfluxDB 3 Core Tokio {} {}", name, thread_counter.fetch_add(1, Ordering::SeqCst))
});
// worker thread count
let num_threads = match self.num_threads {
None => std::thread::available_parallelism()
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?,
Some(n) => n,
};
builder.worker_threads(num_threads.get());
if self.disable_lifo == Some(true) {
#[cfg(tokio_unstable)]
{
builder.disable_lifo_slot();
}
#[cfg(not(tokio_unstable))]
{
return Err(std::io::Error::new(
std::io::ErrorKind::Other,
"disabling LIFO slot requires `tokio_unstable`",
));
}
}
if let Some(x) = self.event_interval {
builder.event_interval(x.get());
}
if let Some(x) = self.global_queue_interval {
builder.global_queue_interval(x.get());
}
if let Some(x) = self.max_blocking_threads {
builder.max_blocking_threads(x.get());
}
View on GitHub (pinned to 06200ef96b)