You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using vault (current 1.5.4) to broker connections to mongodb, if the mongodb replicaset configured in the plugin is unavailable, goroutines begins to climb. These get higher and higher (along with open file handles) until eventually vault becomes unresponsive.
To Reproduce
Steps to reproduce the behavior:
Configure vault mongodb database plugin to provide credentials to a mongodb replicaset
Break or disable mongodb on that replicaset (but leave the servers themselves available, just with no mongo running)
Watch open goroutines climb indefinitely
Expected behavior
Vault database plugin closes goroutines after being unable to establish a connection to mongodb
Environment:
Vault Server Version (retrieve with vault status): 1.5.4 (also observed in 1.0.3, which we upgraded from in an attempt to resolve this issue, as we're aware a similar fault was fixed in 1.3.2)
Vault CLI Version (retrieve with vault version): v1.5.4
Server Operating System/Architecture: Ubuntu 16.04
Additional context
We are aware disable_mlock probably should be "false" and have tried that too, it doesn't affect this issue. We also have a lot of traffic hitting the replicaset requesting creds. Perhaps ten creds a minute, but there is no resource contention of CPU, mem etc
The text was updated successfully, but these errors were encountered:
My hunch is that the goroutines you were seeing were related to lease revocation. I believe the rework of expiration in 1.7 would have addressed this. Could you try to reproduce with a current version? And if you succeed, can you attach the output from running vault debug against the active node when this happen?
Since it's been a few months since there was last activity on this issue, I'll go ahead and close it now. If you have further bug reports, or more activity on this issue, please feel free to re-open it. Don't forget you can get help on our discuss forum, as well! https://discuss.hashicorp.com/c/vault/30
Describe the bug
When using vault (current 1.5.4) to broker connections to mongodb, if the mongodb replicaset configured in the plugin is unavailable, goroutines begins to climb. These get higher and higher (along with open file handles) until eventually vault becomes unresponsive.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Vault database plugin closes goroutines after being unable to establish a connection to mongodb
Environment:
vault status
): 1.5.4 (also observed in 1.0.3, which we upgraded from in an attempt to resolve this issue, as we're aware a similar fault was fixed in 1.3.2)vault version
): v1.5.4Vault server configuration file(s):
Additional context
We are aware disable_mlock probably should be "false" and have tried that too, it doesn't affect this issue. We also have a lot of traffic hitting the replicaset requesting creds. Perhaps ten creds a minute, but there is no resource contention of CPU, mem etc
The text was updated successfully, but these errors were encountered: