influxdata / influxdata/influxdb
Cannot update bucket to infinite retention policy via API
- Dominant language
- Rust
- Stars
- 31.7k
- Forks
- 3.7k
- Avg merge
- 13h 37m
- Merged PRs (30d)
- 8
Description
I sent a request to the update bucket endpoint with a valid request. I set the retention period to 0 to make it infinite.
I get the following error:
```
expiration seconds must be greater than or equal to one second
```
I expected it to work.
Reproducing:
- create a bucket with a retention period `1h`
- send a update to taht bucket with retention period `0` to set to infinite
Contributor guide
Research direction
Start at the update bucket API endpoint and trace how a retention period of 0 is validated, comparing it with bucket creation using a 1h retention period. Reproduce the request described in the issue and verify that updating the bucket to retention period 0 succeeds and represents infinite retention.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100