influxdata / influxdata/influxdb
[v2] delete with predicate doesn't handle negation of measurement names properly
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
For this predicate "predicate": "_measurement!=m1" against the v2 api/v2/delete api, I would expect all measurements in the bucket except m1 to be deleted for the time range of the delete; but it appears that nothing is deleted.
The code parses out the measurement name but doesn't keep track of the negation so it thinks you want to delete m1 so it tries but then that always fails on the predicate.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing predicate parsing and measurement-name handling in the v2 api/v2/delete endpoint, then reproduce the _measurement!=m1 case for a bounded time range. Done means deletion removes all measurements except m1, while positive measurement predicates continue to behave correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100