Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable /api/v2/delete #19580

Closed
1 task done
stuartcarnie opened this issue Sep 17, 2020 · 0 comments · Fixed by #19636
Closed
1 task done

Disable /api/v2/delete #19580

stuartcarnie opened this issue Sep 17, 2020 · 0 comments · Fixed by #19636
Assignees
Labels
area/2.x OSS 2.0 related issues and PRs team/compute team/storage

Comments

@stuartcarnie
Copy link
Contributor

stuartcarnie commented Sep 17, 2020

What

The HTTP API /api/v2/delete is incomplete after the TSM1.x transition. There is a risk that by not passing sources or the predicate to the storage engine, it may result in catastrophic data loss:

// TODO - edd convert the predicate into an influxql.Expr

  • Update the HTTP handler to return 501 Not Implemented until the feature is can be supported by the tsdb storage engine.
@stuartcarnie stuartcarnie added area/2.x OSS 2.0 related issues and PRs team/compute team/storage labels Sep 17, 2020
@stuartcarnie stuartcarnie changed the title DeleteBucketRangePredicate ignores the predicate, deleting all /api/v2/delete may result in unexpected data loss Sep 17, 2020
@stuartcarnie stuartcarnie changed the title /api/v2/delete may result in unexpected data loss Disable /api/v2/delete Sep 24, 2020
@stuartcarnie stuartcarnie self-assigned this Sep 24, 2020
randycoulman pushed a commit to influxdata/telemetry_influxdb that referenced this issue Oct 20, 2020
The tests are currently failing due to the removal of the delete-with-predictate API.

It was removed in influxdata/influxdb#19580 and there is an open issue for restoring it in influxdata/influxdb#19635.
randycoulman pushed a commit to influxdata/telemetry_influxdb that referenced this issue Oct 22, 2020
The tests are currently failing due to the removal of the delete-with-predictate API.

It was removed in influxdata/influxdb#19580 and there is an open issue for restoring it in influxdata/influxdb#19635.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/2.x OSS 2.0 related issues and PRs team/compute team/storage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@stuartcarnie and others