influxdata / influxdata/influxdb

Panic on influxdb3 0.1.0, revision v2.5.0-14188-gb2f6c1a0b6bdf57f26d2fe061afa4f3495dd8a4a running on Mac M2

Open
#25,650 5 comments 0 reactions 0 assignees View on GitHub
v3
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

__Logs:__
Include snippet of errors in logs or stack traces here.
Sometimes you can get useful information by running the program with the `RUST_BACKTRACE=full` environment variable.
Finally, the IOx server has a `-vv` for verbose logging.

RUST_BACKTRACE=0
2024-12-12T17:10:09.143125Z INFO influxdb3::commands::serve: InfluxDB3 Edge server starting git_hash=v2.5.0-14188-gb2f6c1a0b6bdf57f26d2fe061afa4f3495dd8a4a version=0.1.0 uuid=0deb40d5-185b-4a5e-be5f-5b0a83673547 num_cpus=12 build_malloc_conf=
2024-12-12T17:10:09.143190Z INFO clap_blocks::object_store: Object Store db_dir="/Users/marckaplan/.influxdb3" object_store_type="Directory"
2024-12-12T17:10:09.143302Z INFO influxdb3::commands::serve: Creating shared query executor num_threads=12
2024-12-12T17:10:09.146259Z INFO influxdb3::commands::serve: Catalog initialized with instance_id="522a9004-0d4d-4a44-b2f4-a3005154f05e"
2024-12-12T17:10:09.146997Z ERROR panic_logging: Thread panic panic_type="unknown" panic_message="assertion failed: min_time <= max_time" panic_file="influxdb3_wal/src/snapshot_tracker.rs" panic_line=164 panic_column=9
thread 'main' panicked at influxdb3_wal/src/snapshot_tracker.rs:164:9:
assertion failed: min_time <= max_time
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2024-12-12T17:10:09.147497Z WARN executor: DedicatedExecutor dropped without calling shutdown()
2024-12-12T17:10:09.147496Z INFO influxdb3_cache::parquet_cache: cache request handler closed

RUST_BACKTRACE=1
2024-12-12T17:57:20.380454Z INFO influxdb3::commands::serve: InfluxDB3 Edge server starting git_hash=v2.5.0-14188-gb2f6c1a0b6bdf57f26d2fe061afa4f3495dd8a4a version=0.1.0 uuid=a71e0814-5931-4cb1-a875-821faa45ae4b num_cpus=12 build_malloc_conf=
2024-12-12T17:57:20.380551Z INFO clap_blocks::object_store: Object Store db_dir="/Users/marckaplan/.influxdb3" object_store_type="Directory"
2024-12-12T17:57:20.380679Z INFO influxdb3::commands::serve: Creating shared query executor num_threads=12
2024-12-12T17:57:20.382465Z INFO influxdb3::commands::serve: Catalog initialized with instance_id="522a9004-0d4d-4a44-b2f4-a3005154f05e"
2024-12-12T17:57:20.382850Z ERROR panic_logging: Thread panic panic_type="unknown" panic_message="assertion failed: min_time <= max_time" panic_file="influxdb3_wal/src/snapshot_tracker.rs" panic_line=164 panic_column=9
thread 'main' panicked at influxdb3_wal/src/snapshot_tracker.rs:164:9:
assertion failed: min_time <= max_time
stack backtrace:
0: _rust_begin_unwind
1: core::panicking::panic_fmt
2: core::panicking::panic
3: influxdb3_wal::snapshot_tracker::WalPeriod::new
4: influxdb3_write::write_buffer::WriteBufferImpl::new::{{closure}}
5: influxdb3::commands::serve::command::{{closure}}
6: influxdb3::main::{{closure}}
7: as core::future::future::Future>::poll
8: tokio::runtime::park::CachedParkThread::block_on
9: tokio::runtime::context::runtime::enter_runtime
10: tokio::runtime::runtime::Runtime::block_on

Contributor guide

Open the contributing guide

Research direction

Start at influxdb3_wal/src/snapshot_tracker.rs:164, specifically WalPeriod::new, and follow its call from influxdb3_write::write_buffer::WriteBufferImpl::new during influxdb3 serve startup. Reproduce with the shown command and existing data directory; done means the server restarts without the min_time <= max_time assertion panic.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.