Details
Description
We have a WebService in Net Framework 4.0. It has to save a lot of logs to mongodb database (estimation per day: 3 million documents, 800 MB).
On peak load, we could see the following error in event viewer:
Event Type: Error
Event Id: 0
Description:
2013-01-17 09:58:13.9687|"Critical"|"STATISTICS"|"Exception in Statistics MongoDB provider SaveToDatabase. LoB: 'Hotels'; App: 'BookingEngine'; Collection: 'Statistics_HotelsBookingEngineProvider'; Statement: 'sqlCommand'.Thread was being aborted.. at Microsoft.Win32.Win32Native.GetComputerName(StringBuilder nameBuffer, Int32& bufferSize) at System.Environment.get_MachineName() at lambda_method(Closure , Object ) at MongoDB.Bson.Serialization.BsonClassMapSerializer.SerializeMember(BsonWriter bsonWriter, Object obj, BsonMemberMap memberMap) at MongoDB.Bson.Serialization.BsonClassMapSerializer.Serialize(BsonWriter bsonWriter, Type nominalType, Object value, IBsonSerializationOptions options) at MongoDB.Bson.Serialization.BsonSerializer.Serialize(BsonWriter bsonWriter, Type nominalType, Object value, IBsonSerializationOptions options) at MongoDB.Driver.Internal.MongoInsertMessage.AddDocument(Type nominalType, Object document) at MongoDB.Driver.MongoCollection.InsertBatch(Type nominalType, IEnumerable documents, MongoInsertOptions options) at MongoDB.Driver.MongoCollection.Insert(Type nominalType, Object document, MongoInsertOptions options) at MongoDB.Driver.MongoCollection.Insert(Type nominalType, Object document) at MongoDB.Driver.MongoCollection.Insert[TNominalType](TNominalType document) at MongoDB.Driver.MongoCollection`1.Insert(TDefaultDocument document) at Toolfactory.Database.MongoDB.DB.Insert[T](String connectionString, String database, String collectionName, T item) at Toolfactory.Audit.Statistics.MongoDBProvider`1.saveToDatabase(String collectionName, TStatistics statisticsData)"|"00000000-0000-0000-0000-000000000000"|"[NO FLOW]"|"[NO PROCESS POINT]"||