You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure what the max allowable retention policy is (other than INF), but when trying to make an RP with a duration of 100,000 weeks I got a silly error:
> alter retention policy foo on mydb duration 1000000w
ERR: retention policy duration needs to be at least 1h0m0s
Seems like we should tell the user they've exceeded the max discrete RP rather than lie and say 100k weeks is shorter than an hour.
Note that 10,000 weeks works just fine:
> alter retention policy foo on mydb duration 10000w
> show retention policies mydb
name duration replicaN default
default 0 1 true
foo 1680000h0m0s 1 false
The text was updated successfully, but these errors were encountered:
So it is probably erring out that it couldn't parse the int, and assumes you didn't provide a valid int. I think clarifying the error message is the right fix.
beckettsean
changed the title
max retention policy duration not being properly enforced
[0.9.0-rc31] exceeding max retention policy duration gives incorrect error message
Jun 9, 2015
I'm not sure what the max allowable retention policy is (other than INF), but when trying to make an RP with a duration of 100,000 weeks I got a silly error:
Seems like we should tell the user they've exceeded the max discrete RP rather than lie and say 100k weeks is shorter than an hour.
Note that 10,000 weeks works just fine:
The text was updated successfully, but these errors were encountered: