Hi all,
I’m developing an application which is using Couchbase as the caching server. After launching the application on production environment for a day (or sometimes many days), I’ve seen the exception from initializing the Cluster object with the ClientConfiguration. Error message and stack trace are as below:
Exception message: Index was outside the bounds of the array.
Stack trace:
at System.Collections.Generic.Dictionary
2.Enumerator.MoveNext() at Couchbase.Configuration.Client.ClientConfiguration.Initialize() at Couchbase.Core.ClusterController.Initialize() at Couchbase.Core.ClusterController..ctor(ClientConfiguration clientConfig, Func
2 ioServiceFactory, Func3 connectionPoolFactory, Func
5 saslFactory, IByteConverter converter, ITypeTranscoder transcoder)
at Couchbase.Core.ClusterController…ctor(ClientConfiguration clientConfig)
at [MyProject].Common.Caching.Remote.RemoteCache.ReadFromCluster[T](String bucketName, String key) in [MyProject].remoteCaching.cs:line xx
line xx: using (var cluster = new Cluster(clientConfiguration)) { …
The clientConfiguration above contains 4 servers IP addresses which are setup for fail-over purpose.
I’m wondering that this exception never happened immediately after I deployed the application but sometimes later. Does anyone face this problem before ?
Thank you