influxdata / influxdata/influxdb

influx_inspect verify aborts when tsm file is 0 bytes and doesn't print the culprit file

Open
#20,262 1 comment 0 reactions 0 assignees View on GitHub
1.x
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

Influxdb is running after power outage, however I can't verify which files are affected, doing a
`influx_inspect verify -dir /var/lib/influxdb/`
leads to this error message
```
Broken Blocks: 0 / 0, in 0.000149687s
verify: init: error reading magic number of file: EOF
```
Influxdb is running, but I'd like to see which files are affected.

Contributor guide

Open the contributing guide

Research direction

Start with the `influx_inspect verify` command and reproduce the failure using a zero-byte TSM file in the specified directory. Done means verification does not abort without identifying the affected file, while preserving useful error output.

Written by the indexing model from the issue text.

Assessment

Domain
cli, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.