influxdata / influxdata/influxdb
influxd inspect report-tsi shows buckets that don't exist
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
According to `report-tsi -m`, I have a few buckets `a0d3b06c3b658388` and `951a70144eab4467`
but then i try to remove them, and they can't be found. How do i remove those buckets?
```
➜ influxdb git:(master) ✗ ./bin/darwin/influxd inspect report-tsi -m
Total: 11604535
===============
Org 45033447435177d2 total: 11604535
Bucket a0d3b06c3b658388 total: 9505652
_m=building_permits 9505652
Bucket 951a70144eab4467 total: 2044710
_m=building_permits 2044697
_m=uilding_permits 13
Bucket e5ba1e836dc24ef4 total: 43642
_m=new_home_sales 43642
Bucket 2eed0cb7b9d504bb total: 6953
_m=http_api_request_duration_seconds 4058
_m=storage_tsi_index_compactions_duration_seconds 990
...
Bucket 34e10e1c0cfae807 total: 3373
_m=jenkins_node 1592
_m=influxdb_tsm1_engine 377
...
Bucket 000000000000000a total: 126
_m=runs 126
Bucket 000000000000000b total: 78
_m=statuses 78
Bucket 6657a285ef184532 total: 1
_m=a 1
===============
Finished in 1m19.577249219s
➜ influxdb git:(master) ✗ time ./bin/darwin/influx bucket delete -i a0d3b06c3b658388
Error: Failed to find bucket with id "a0d3b06c3b658388": bucket not found.
See 'influx bucket delete -h' for help
./bin/darwin/influx bucket delete -i a0d3b06c3b658388 0.03s user 0.04s system 8% cpu 0.813 total
➜ influxdb git:(master) ✗ time ./bin/darwin/influx bucket delete -i 951a70144eab4467
Error: Failed to find bucket with id "951a70144eab4467": bucket not found.
See 'influx bucket delete -h' for help
./bin/darwin/influx bucket delete -i 951a70144eab4467 0.04s user 0.07s system 20% cpu 0.561 total
```
Contributor guide
Research direction
Start by reproducing the `influxd inspect report-tsi -m` output and comparing the reported bucket IDs with the bucket metadata used by `influx bucket delete`. Trace why the two reported IDs cannot be found, and consider the issue resolved when the report and deletion behavior agree about whether those buckets exist.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100