influxdata / influxdata/influxdb

influxdb_database.numMeasurements less than actual

Open
#17,869 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

Field numMeasurements in measurement influxdb_database is significantly less then actual.
It is always different after restarting the InfluxDB, but always less or significantly less than actual.

After deleting measurements it goes negative (I got -3,000 measurements in my database!).
Notice that my DB had large number of measurements and I am cleaning old ephemeral ones.

InfluxDB v. 1.8.10

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the numMeasurements discrepancy on InfluxDB v1.8.10, including a restart and deletion of many ephemeral measurements. Compare the reported count with the actual measurements after each operation; done means the count remains accurate and does not become negative.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.