Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-369

ObjectDisposedException is not handled in PerformMultiGet

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 1.3.2
    • 1.3.1
    • library
    • None

    Description

      https://github.com/couchbase/EnyimMemcached/blob/master/Enyim.Caching/MemcachedClient.cs#L890

      The line in this code can throw ObjectDisposedException that is not handled in the Memcache Client Code. Since this code is executed on a thread NOT owned by an IIS Context Thread, this un-handled exception terminates the worker process as can be seen in our Application Log.

      <Data>An unhandled exception occurred and the process was terminated. Application ID: /LM/W3SVC/1/ROOT Process ID: 20140 Exception: System.ObjectDisposedException Message: Safe handle has been closed StackTrace: at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success) at Microsoft.Win32.Win32Native.SetEvent(SafeWaitHandle handle) at System.Threading.EventWaitHandle.Set() at Enyim.Caching.MemcachedClient.<>c_DisplayClass29`1.<PerformMultiGet>b_1d(IAsyncResult iar) at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg) at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink) 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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch()</Data>

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jmorris Jeff Morris
            jmorris Jeff Morris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty