Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-662

Thread was being aborted

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker - P1 Blocker - P1
    • None
    • 1.7
    • None
    • None

    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]"||

      Attachments

        Activity

          People

            Unassigned Unassigned
            david.verdejo@logitravel.com David Verdejo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: