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

Driver causes application crash after a random amount of time

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • 1.7
    • None
    • Driver version 1.7.0.4714
      Mono 2.10.8.1
      Ubuntu 12.04.1 x64 Server

    Description

      The application works fine for a long period of time then suddenly throws an exception (attached), and the app eventually crashes.

      Before crash the exception shows that a document in database has a field (auto property in C#) of an incorrect type. For example recently it was a
      DateTime FirstEventTime

      {get;set;}

      with a value of 0. And the exception was "Cannon cast from double to DateTime". That is, the database becomes inconsistent (no query can be performed on that collection from C#) until an update of that property or a manual document removal.

      The application is multithreaded, without any JavaScript for any DB operation, only the Insert(), Update(). FindOneById() and AsQueryable() methods provided by MongoCollection<T>.

      Attached are a couple of stacktraces (Payment.Nr is a string autoproperty).

      Attachments

        1. NullReferenceException.txt
          3 kB
        2. Payment.Nr.txt
          6 kB
        3. Session.FirstEventTime.txt
          3 kB

        Activity

          People

            robert@mongodb.com Robert Stam
            sologub Ruslan Sologub
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: