I created this simple application
using System;
using System.Configuration;
using System.Threading;
using Couchbase;
using Couchbase.Configuration;
namespace SimpleCouchClientTest
{
///
/// Simple couch client test
///
class Program
{
static void Main(string[] args)
{
var connectionString = “http://localhost:8091/pools/”;
var bucketName = “testbucket”;
var bucketPassword = “testbucket”;
var numberOfLoops = 1000;
for (var i = 0; i <= numberOfLoops; i++)
{
var config = new CouchbaseClientConfiguration
{
Bucket = bucketName,
BucketPassword = bucketPassword,
};
config.Urls.Add(new Uri(connectionString));
Console.WriteLine("Creating client #" + i);
var couchClient = new CouchbaseClient(config);
Console.WriteLine("Client #" + i + " created.");
//Thread.Sleep(100); //-- uncomment this to run successfully
}
}
}
}
The numberOfLoops is set to 1000, and the CouchbaseClient creation hangs after first client. I ran the WinDbg session and I learnt the client is getting stuck on BucketConfigListener.Start().
Is this a known issue? Are there any workarounds?