Hello,
I am using .NET SDK 2.0.2 and I noticed that the PoolConfiguration.OperationTimeout
setting is ignored by the client and the default value is always used.
I did the following test:
var config = new ClientConfiguration
{
Servers = new List<Uri>
{
new Uri("http://127.0.0.1:8091/pools"),
},
BucketConfigs = new Dictionary<string, BucketConfiguration>
{
{
"samples",
new BucketConfiguration
{
BucketName = "samples",
}
}
},
PoolConfiguration = new PoolConfiguration
{
MinSize = 10,
MaxSize = 10,
OperationTimeout = (int)TimeSpan.FromSeconds(15).TotalMilliseconds,
},
};
var cluster = new Cluster(config);
var bucket = cluster.OpenBucket(c.Configuration.BucketConfigs.Single().Value.BucketName);
var result = bucket.Get<string>("some_key");
After debugging into the source code, I noticed that the Couchbase.IO.Operations.Get<string>
operation that gets instantiated during the operation has the default Timeout
property of 2500
instead of 15000
as I would expect in this case.