We have found this issue a few times now, we have a production system that uses cassandra in low volume, we have cassandra set up as a WCF web service, this error happens unexpectedly, and in un reproducible manner, basically it's random.
System.IndexOutOfRangeException: Index was outside the bounds of the array.\r\n at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)\r\n at System.Collections.ObjectModel.KeyedCollection`2.Contains(TKey key)\r\n at Cassandra.Mapping.PocoDataFactory.AddDefinitionDefault(Type type, Func`1 definitionHandler)\r\n at Cassandra.Data.Linq.SessionExtensions.GetTable[TEntity](ISession session, String tableName, String keyspaceName)\r\n at Brain.Library.Providers.CassandraProvider.Find[T](Expression`1 whereExpression)\r\n at Cassandra.WCF.Service1.GetClientSettings(ClientSettingsModel request)
So far, we have had to restart IIS in order to get rid of the issue.
The stack trace was useful, thanks .
Could it be that definitions to the MappingConfiguration are being added on a thread, while Table<T> instances are trying to be accessed concurrently on another thread?
Any updates about this issue?
I'm closing this one as we don't have enough information to reproduce.