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

Timeout in background state management thread crashes application domain

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2
    • Affects Version/s: 1.2
    • Component/s: None
    • Labels:
      None

      Driver git version 5778f994d4. Exception is not handled in timer callback, so as with any thread pool threads exceptions the application domain goes down when server stops responding and first timeout is encountered.

      Exception: System.TimeoutException: Timeout waiting for a MongoConnection.
      at MongoDB.Driver.Internal.MongoConnectionPool.AcquireConnection(MongoDatabase database) in Driver\Internal\MongoConnectionPool.cs:line 141
      at MongoDB.Driver.MongoServerInstance.VerifyState() in Driver\Core\MongoServerInstance.cs:line 233
      at MongoDB.Driver.Internal.MongoConnectionPool.TimerCallback(Object state) in Driver\Internal\MongoConnectionPool.cs:line 268
      at System.Threading.ExecutionContext.runTryCode(Object userData)
      at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
      at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
      at System.Threading._TimerCallback.PerformTimerCallback(Object state)

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            onyxmaster Aristarkh Zagorodnikov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: