influxdata / influxdata/kapacitor
InfluxDBOut can't create a new retention policy when the database already exists
Open
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 479
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
InfluxDBOut always issues the `CREATE DATABASE dbname WITH NAME rpname` query, which fails if the database already exists but the retention policy does not.
Contributor guide
Research direction
Start by tracing InfluxDBOut's handling of the `CREATE DATABASE dbname WITH NAME rpname` query and identify the tests covering database and retention-policy creation. Reproduce the case where the database exists but the retention policy does not, then verify that the retention policy can be created without failing on the existing database.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100