change cassandra db plugin timeout to 5s as in docs (#12443)
* fix cassandra db plugin timeout to 5s as in docs Documentation says timeout is 5s, but code uses 0s, which is too short any any real world usage, causing issues. https://www.vaultproject.io/api/secret/databases/cassandra#connect_timeout issues: https://github.com/hashicorp/vault/issues/8527 https://github.com/hashicorp/vault/issues/9400 * Create 12443.txt changelog entry
This commit is contained in:
parent
dd0a2c15a3
commit
8b7b57f3ec
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:bug
|
||||||
|
secrets/database/cassandra: change connect_timeout to 5s as documentation says
|
||||||
|
```
|
|
@ -60,7 +60,7 @@ func (c *cassandraConnectionProducer) Initialize(ctx context.Context, req dbplug
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.ConnectTimeoutRaw == nil {
|
if c.ConnectTimeoutRaw == nil {
|
||||||
c.ConnectTimeoutRaw = "0s"
|
c.ConnectTimeoutRaw = "5s"
|
||||||
}
|
}
|
||||||
c.connectTimeout, err = parseutil.ParseDurationSecond(c.ConnectTimeoutRaw)
|
c.connectTimeout, err = parseutil.ParseDurationSecond(c.ConnectTimeoutRaw)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue