Hello,
We’ve been using the newer 3.3.X SDK (specifcally 3.3.4) for awhile, and have not had any issues of note.
Recently on one of our environments, we started to get bootstrap errors after deploying a new version of our service.
To investigate deeper, I used a tool to connect to CB in the problematic environment, and it failed once out of 4 tries (success, fail, success, success). The good log vs bad looks like this:
Good:
Logger - EnableTls is set to True
Logger - ForceIpAsTargetHost is set to False
Couchbase.Core.IO.Connections.Channels.ChannelConnectionPool - Using the ChannelConnectionPool.
Couchbase.Core.ClusterContext - NetworkResolution [default] using default ------
Couchbase.Core.ClusterContext - Bootstrapping: initializing a global non-bootstrap node [-------]
Couchbase.Query.QueryClient - Enabling Enhanced Prepared Statements
Logger - Opening Couchbase bucket: ‘-----’
Couchbase.Core.ClusterContext - Bootstrapping: created a membase bucket for --------.
Bad:
Logger - EnableTls is set to True
Logger - ForceIpAsTargetHost is set to False
Couchbase.Core.IO.Connections.Channels.ChannelConnectionPool - Using the ChannelConnectionPool.
Logger - Opening Couchbase bucket: ‘-----’
Logger - Could not initialize Couchbase cluster and/or ----- bucket: Cluster has not yet bootstrapped. Call WaitUntilReadyAsync(…) to wait for it to complete.
Our CB server in this environment did have some issues last week (bombarded with load and wasn’t sized/couldn’t handle it), but we thought we fixed things up.
Any ideas what could be wrong / what to check? Is the CB SDK unable to create/get a connection from the pool? If so, how is this tied to the CB server?
Btw, I noticed that when the bootstrap error occurred, the memory kept rising in our service until it crashed/restarted. I don’t know if this is how we have the service implemented or whether it’s something in the CB SDK. Might be something to look at though.
NOTE: We also have tested on the latest 3.3.6 and the same bootstrap error comes up in the bad environment (but not in the good environment).