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

0.9.0-RC6: Create Infinite Retention Policy #1796

Closed
Sineos opened this issue Feb 28, 2015 · 4 comments
Closed

0.9.0-RC6: Create Infinite Retention Policy #1796

Sineos opened this issue Feb 28, 2015 · 4 comments
Assignees

Comments

@Sineos
Copy link

Sineos commented Feb 28, 2015

Creating an Infinite Retention Policy seems not possible. Both "0" or "INF" is rejected:

curl -G http://localhost:8086/query --data-urlencode "q=CREATE RETENTION POLICY blubb ON test DURATION 'INF' REPLICATION 1 DEFAULT"
{"error":"error parsing query: found INF, expected duration at line 1, char 47"}

curl -G http://localhost:8086/query --data-urlencode "q=CREATE RETENTION POLICY blubb ON test DURATION 0 REPLICATION 1 DEFAULT"
{"error":"error parsing query: found 0, expected duration at line 1, char 48"}

Strange enough following is accepted:

curl -G http://localhost:8086/query --data-urlencode "q=CREATE RETENTION POLICY blubb2 ON test DURATION 0h REPLICATION 1 DEFAULT"
{"results":[{}]}

In addition it would be nice if the web ui offers to

  • edit retention policies
  • remove retention policies

Running 8eefdba on Ubuntu 14.04

@otoolep otoolep self-assigned this Mar 4, 2015
@dmerino-va
Copy link

Would it be possible that the default retention policy for all databases is infinite if not specified?

@nemesifier
Copy link

I agree that it would be nice both to have infinite retention policy and inifinite as default behaviour.

@otoolep
Copy link
Contributor

otoolep commented Mar 5, 2015

We have had discussions about this, which are relevant.

#1732

@otoolep
Copy link
Contributor

otoolep commented Mar 5, 2015

Pass INF for infinite retention policies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants