This is very similar to a post made back in April 2015
TimeoutException trying to open a Bucket after a InvalidPasswordException
We are using CouchbaseServer 4.1.1-5914, and as shown in the Couchbase Environment below, we are using couchbase-java-client-2.2.8 and couchbase-io-core-1.2.9
Did the fix for the post/issue back in April 2015 get inadvertantly removed in the recent version of the jar files?
Thanks
Below are the logs showing the issue:
Jul 26, 2016 9:43:04 AM com.couchbase.client.core.CouchbaseCore
INFO: CouchbaseEnvironment: {sslEnabled=false, sslKeystoreFile=‘null’, sslKeystorePassword=‘null’, queryEnabled=false, queryPort=8093, bootstrapHttpEnabled=true, bootstrapCarrierEnabled=true, bootstrapHttpDirectPort=8091, bootstrapHttpSslPort=18091, bootstrapCarrierDirectPort=11210, bootstrapCarrierSslPort=11207, ioPoolSize=3, computationPoolSize=3, responseBufferSize=16384, requestBufferSize=16384, kvServiceEndpoints=2, viewServiceEndpoints=2, queryServiceEndpoints=2, searchServiceEndpoints=1, ioPool=NioEventLoopGroup, coreScheduler=CoreScheduler, eventBus=DefaultEventBus, packageNameAndVersion=couchbase-java-client/2.2.8 (git: 2.2.8, core: 1.2.9), dcpEnabled=false, retryStrategy=BestEffort, maxRequestLifetime=75000, retryDelay=ExponentialDelay{growBy 1.0 MICROSECONDS, powers of 2; lower=100, upper=100000}, reconnectDelay=ExponentialDelay{growBy 1.0 MILLISECONDS, powers of 2; lower=32, upper=4096}, observeIntervalDelay=ExponentialDelay{growBy 1.0 MICROSECONDS, powers of 2; lower=10, upper=100000}, keepAliveInterval=30000, autoreleaseAfter=2000, bufferPoolingEnabled=true, tcpNodelayEnabled=true, mutationTokensEnabled=true, socketConnectTimeout=1000, dcpConnectionBufferSize=20971520, dcpConnectionBufferAckThreshold=0.2, dcpConnectionName=dcp/core-io, callbacksOnIoPool=false, queryTimeout=75000, viewTimeout=75000, kvTimeout=2500, connectTimeout=5000, disconnectTimeout=25000, dnsSrvEnabled=false}
(bwdyn openBucket is successful)
Invoking bucketProxy for schemaInstance bwdyn
Jul 26, 2016 9:43:04 AM com.couchbase.client.core.node.CouchbaseNode signalConnected
INFO: Connected to Node 10.16.168.105
Jul 26, 2016 9:43:04 AM com.couchbase.client.core.config.DefaultConfigurationProvider$8 call
INFO: Opened bucket bwdyn
Number of Buckets Added for bwdyn = 1
(bwecl openBucket fails due to password mismatch, which is correct)
Invoking bucketProxy for schemaInstance bwecl
Jul 26, 2016 9:43:04 AM com.couchbase.client.core.endpoint.AbstractEndpoint$2 operationComplete
WARNING: [null][KeyValueEndpoint]: Authentication Failure.
Jul 26, 2016 9:43:04 AM com.couchbase.client.core.endpoint.AbstractEndpoint$2 operationComplete
WARNING: [null][KeyValueEndpoint]: Authentication Failure.
Jul 26, 2016 9:43:04 AM com.couchbase.client.core.endpoint.ResponseStatusConverter fromHttp
WARNING: Unknown ResponseStatus with Protocol HTTP: 401
Jul 26, 2016 9:43:04 AM com.couchbase.client.core.endpoint.ResponseStatusConverter fromHttp
WARNING: Unknown ResponseStatus with Protocol HTTP: 401
Failed to get bucket for bwecl, cause = com.couchbase.client.java.error.InvalidPasswordException: Passwords for bucket “bwecl” do not match.
Number of Buckets Added for bwecl = 0
(bwsub openBucket request is attempted twice, and both time out)
Invoking bucketProxy for schemaInstance bwsub
Caught Timeout Exception during open bucket, retrying Bucket for: bwsub
Caught Timeout Exception during open bucket, retrying Bucket for: bwsub
Number of Buckets Added for bwsub = 0
(openBucket for bwsub is then attempted on a new CouchbaseCluster.create(…) connection, and then it works - as it should)
getPreferredBucket was null for schemaInstance bwsub
Jul 26, 2016 9:43:14 AM com.couchbase.client.core.CouchbaseCore
Calling Test openBucket for instance: bwsub
Jul 26, 2016 9:43:14 AM com.couchbase.client.core.node.CouchbaseNode signalConnected
INFO: Connected to Node 10.16.168.105
Jul 26, 2016 9:43:14 AM com.couchbase.client.core.config.DefaultConfigurationProvider$8 call
INFO: Opened bucket bwsub
Jul 26, 2016 9:43:14 AM com.couchbase.client.core.config.DefaultConfigurationProvider$11 call
INFO: Closed bucket bwsub
Jul 26, 2016 9:43:14 AM com.couchbase.client.core.node.CouchbaseNode signalDisconnected
INFO: Disconnected from Node 10.16.168.105