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

databases should always have a default retention policy #3699

Closed
beckettsean opened this issue Aug 17, 2015 · 2 comments
Closed

databases should always have a default retention policy #3699

beckettsean opened this issue Aug 17, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@beckettsean
Copy link
Contributor

In 0.9.2 it is possible to drop the default RP, meaning all subsequent writes that don't explicitly specify an RP will fail.

> use test
Using database test
> show retention policies on test
name    duration    replicaN    default
default 0       1       true
foo 3h25m45.678s    1       false

> drop retention policy "default" on test

> show retention policies on test
name    duration    replicaN    default
foo 3h25m45.678s    1       false

> insert foo,bar=baz value=123
ERR: retention policy not found

It is not possible to remove the default setting from a retention policy except by explicitly declaring another policy the default. I think the only way to end up without one is to drop the current default RP.

@otoolep otoolep self-assigned this Aug 17, 2015
@otoolep otoolep added this to the 0.9.4 milestone Aug 17, 2015
otoolep added a commit that referenced this issue Sep 9, 2015
This is to prevents users from putting their system into an awkward
state. It is a policy that all databases must have at least a default
retention policy.

Fixes issue #3699.
@otoolep
Copy link
Contributor

otoolep commented Sep 9, 2015

Should be fixed by #4053

@otoolep
Copy link
Contributor

otoolep commented Sep 9, 2015

All fixed.

@otoolep otoolep closed this as completed Sep 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants