-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Delete statement ignores a retention policy #7053
Comments
Looking at the docs, I think this is the intended behavior. @beckettsean thoughts? It seems to me like the behavior that he's saying seems more appropriate, but it would potentially be a breaking change. |
@jsternberg I agree the behavior is currently as intended, but also that it's not intuitive. Sometimes RPs are logically separate (all writes, all |
@we should either:
I think 2 is preferable, but 1 might be an easier short term fix. |
@jwilder I need a final answer on the direction for resolving this issue. I can attempt |
@corylanou See if you can get 2. If it's pretty involved, let's at least get 1 in. |
The delete and drop statements apply to the measurement within a db. The parser allowed a db or rp to be specified and these values were silently ignored. This could cause data loss as someone would think they are only deleting the series within a rp, but they are actually deleting all their data. Instead, we return a parse error if a db or rp is specified in the delete or drop statements. Ideally, we'd be able to respect the db and rp, but that requires significant work in the query engine and tsdb store to make that work. Fixes #7053
Bug report
Delete statement ignores a specified retention policy and deletes data across all retention policies.
System info: InfluxDB 1.0 beta3, InfluxDB nightly (1.1.0~n201607220800) Ubuntu 14.04
Steps to reproduce:
Expected behavior: Data deleted only from
myrp
retention policyActual behavior: Data deleted in all retention policies
The text was updated successfully, but these errors were encountered: