influxdata / influxdata/influx-cli

shard duration 0 (infinite) not applying, `Error: retention policy duration must be greater than the shard duration`

Open
#524 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
75
Forks
22
PR merge metrics
No merged PRs in 30d

Description

__Steps to reproduce:__
List the minimal actions needed to reproduce the behaviour.

1. create influxdb:latest container
2. try creating a bucket with `influx bucket create --name "test" --shard-group-duration 10000w -r 0`

__Expected behaviour:__
Should create the bucket since the retention value is zero -> infinite

__Actual behaviour:__
`Error: failed to create bucket: 500 Internal Server Error: retention policy duration must be greater than the shard duration`

__Environment info:__
INFLUXDB_VERSION: 2.7.3
INFLUX_CLI_VERSION: 2.7.3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the reported InfluxDB container and `influx bucket create --name "test" --shard-group-duration 10000w -r 0` command. Trace the bucket-creation path for how zero retention and shard-group duration are validated. Done means the command creates the bucket with infinite retention without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.