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

Connection to replicaset, RequestHeartbeat error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Connectivity
    • Labels:
    • Environment:
      Server, Windows 2012 R2 running our framework in IIS.
      Connection to a cluster of 3 windows 2012 R2 servers running MongoDb 3.0.1
      All servers running in windows Azure.

      Description

      The driver crashes with the following error:

      An unhandled exception occurred and the process was terminated.
      Application ID: Helios-6408e122-16e7-4b49-b613-826625892360
      Process ID: 3620
      Exception: System.ObjectDisposedException
      Message: Cannot access a disposed object.
      Object name: 'ClusterableServer'.

      StackTrace: at MongoDB.Driver.Core.Servers.ClusterableServer.ThrowIfDisposed()
      at MongoDB.Driver.Core.Servers.ClusterableServer.RequestHeartbeat()
      at MongoDB.Driver.Core.Clusters.MultiServerCluster.RequestHeartbeat()
      at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
      at System.Threading.TimerQueueTimer.CallCallback()
      at System.Threading.TimerQueueTimer.Fire()
      at System.Threading.TimerQueue.FireNextTimers()

      We are getting this error in our daily performance tests sometimes.
      It happens at random times, not always at the same place.
      Never with a direct call on the mongo driver (nothing from our code in the stacktrace).

      We also run the same test on a single mongo instance. This never gives any problem.

      When our framework starts in gets a client and database class.
      It keeps using the same database class the whole time.

        Attachments

          Activity

            People

            Assignee:
            craiggwilson Craig Wilson
            Reporter:
            robkoenis Rob Koenis
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: