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

AggregateException when timeouts occur

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.0-beta.1
    • None
    • None
    • 1

    Description

      If a timeout occurs within the SDK, a result is set in the TaskCompletionSource and returned to the app. However, the SDK may still try to set a result using the same completion source and will cause an exception as a TCS can only have one result set.

      To mitigate this, we should replace any SetResult / SetException call to the TCS with the TryXXX overload which does not throw an exception and only sets the result if one has not already been set.

      Attachments

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

        Activity

          People

            mike.goldsmith Michael Goldsmith
            mike.goldsmith Michael Goldsmith
            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