Skip to content

InfluxDB Core crashes on startup with mismatched Record Batch lengths #26339

Open
@w858269620

Description

@w858269620

Steps to reproduce:
List the minimal actions needed to reproduce the behaviour.

/root/.influxdb/influxdb3 serve --node-id=node0 --http-bind=0.0.0.0:8181 --object-store=file --data-dir /root/.influxdb/data

Environment info:

Ubuntu 20 ARM

Config:
Copy any non-default config values here or attach the full config as a gist or file.

Logs:

2025-04-29T01:51:10.125927Z  INFO influxdb3_wal::snapshot_tracker: timestamps passed in and wal file num min_time=Timestamp(1745886834809000000) max_time=Timestamp(1745886834809000000) wal_file_number=WalFileSequenceNumber(230527)
2025-04-29T01:51:10.125954Z  INFO influxdb3_wal::object_store: replaying WAL file n_ops=1 min_timestamp_ns=1745886834809000000 max_timestamp_ns=1745886834809000000 wal_file_number=230527 snapshot_details=Some(SnapshotDetails { snapshot_sequence_number: SnapshotSequenceNumber(223), end_time_marker: 1745886600000000000, first_wal_sequence_number: WalFileSequenceNumber(229628), last_wal_sequence_number: WalFileSequenceNumber(230410), forced: false })
2025-04-29T01:51:10.126004Z  INFO influxdb3_wal::snapshot_tracker: snapshotting all before last wal period (using last wal period time) force_snapshot=false wal_periods_3_times_snapshot_size=false
2025-04-29T01:51:10.126108Z  INFO influxdb3_write::write_buffer::queryable_buffer: Buffering contents and persisting snapshotted data snapshot_details=SnapshotDetails { snapshot_sequence_number: SnapshotSequenceNumber(223), end_time_marker: 1745886600000000000, first_wal_sequence_number: WalFileSequenceNumber(229628), last_wal_sequence_number: WalFileSequenceNumber(230410), forced: false }
2025-04-29T01:51:10.128019Z ERROR panic_logging: Thread panic panic_type="unknown" panic_message="should always be able to build record batch: InvalidArgumentError(\"all columns in a record batch must have the same length\")" panic_file="influxdb3_write/src/write_buffer/table_buffer.rs" panic_line=451 panic_column=18

thread 'main' panicked at influxdb3_write/src/write_buffer/table_buffer.rs:451:18:
should always be able to build record batch: InvalidArgumentError("all columns in a record batch must have the same length")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2025-04-29T01:51:10.130264Z  WARN executor: DedicatedExecutor dropped without calling shutdown()
2025-04-29T01:51:10.130263Z  INFO influxdb3_cache::parquet_cache: cache request handler closed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions