Skip to content

Commit

Permalink
fix cassandra db plugin timeout to 5s as in docs
Browse files Browse the repository at this point in the history
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: hashicorp#8527 hashicorp#9400
viljoviitanen authored Aug 26, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 5080c3e commit d63f4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/database/cassandra/connection_producer.go
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ func (c *cassandraConnectionProducer) Initialize(ctx context.Context, req dbplug
}

if c.ConnectTimeoutRaw == nil {
c.ConnectTimeoutRaw = "0s"
c.ConnectTimeoutRaw = "5s"
}
c.connectTimeout, err = parseutil.ParseDurationSecond(c.ConnectTimeoutRaw)
if err != nil {

0 comments on commit d63f4f6

Please sign in to comment.