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

Ensure Dispose is call on every MD5CryptoServiceProvider class usage

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.3.9
    • 1.3.8
    • library
    • None

    Description

      Every Get or Set call invokes KetamaNodeLocator.Locate(string key). The memcached keys are hashed through MD5 algorithm to find node they are supposed to be stored on. The current implementation creates a new MD5CryptoServiceProvider class which has underlying SafeHashHandle that registers into finalizer queue. Because the code does not call Dispose on the MD5CryptoServiceProvider instance, the SafeHashHandle remains in finalizer queue till garbage collector disposes it properly.

      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