influxdata / influxdata/influxdb

Cannot update bucket to infinite retention policy via API

Open
#15,698 0 comments 1 reaction 0 assignees View on GitHub
area/api kind/bug
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.