Unfortunately, I’m using version 2.2.4 and this bug still seems to be present. It doesn’t always occur, but more often than not, it does. Specifically, when I try to open a second bucket the following exception is thrown:
java.lang.RuntimeException: java.util.concurrent.TimeoutException
at com.couchbase.client.java.util.Blocking.blockForSingle(Blocking.java:75)
at com.couchbase.client.java.CouchbaseCluster.openBucket(CouchbaseCluster.java:296)
at com.couchbase.client.java.CouchbaseCluster.openBucket(CouchbaseCluster.java:271)
at com.couchbase.client.java.CouchbaseCluster.openBucket(CouchbaseCluster.java:261)
My code looks like this:
// Get a connection to the DB
cluster = CouchbaseCluster.create( “couchbasehost” );
if( cluster != null )
{
idBucket = cluster.openBucket( “ID_Repository”, 30, TimeUnit.SECONDS );
topicBucket = cluster.openBucket( “topics”, 30, TimeUnit.SECONDS );
messageBucket = cluster.openBucket( “topicMessages”, 30, TimeUnit.SECONDS );
}
At the line where I try to open the topicBucket, the above exception is thrown.
Any thoughts, workarounds, etc will be appreciated.