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

Multi-Dispose Of ThresholdLoggingTracer Causes ObjectDisposeException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Minor
    • .backlog
    • 2.7.8, 3.0.0-alpha4
    • library
    • None
    • 1

    Description

      If a ThresholdLoggingTracer is disposed more than once, it shouldn't error on the second call. This can occur if the Cluster object is disposed more than once.

      https://github.com/couchbase/couchbase-net-client/blob/master/src/Couchbase/Core/Diagnostics/Tracing/ThresholdLoggingTracer.cs#L246

      Should set _queue to null after disposing to prevent this error.

      Note: This issue could also be considered to extend to how the Tracer property is handled on ClientConfiguration. If the same ClientConfiguration object is reused across more than one Cluster, the Tracer is reused though it has been disposed.

      Attachments

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

        Activity

          People

            jmorris Jeff Morris
            btburnett3 Brant Burnett
            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