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

Remove unnecessary linked CancellationToken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1.1
    • None
    • None
    • None
    • 1

    Description

      1.

      CouchbaseCollection.RetryUntilTimeoutOrSuccessAsync

      should dispose the cancellation token source

      2.

      RetryOrchestrator.RetryAsync should dispose 

      tokensource created by
      if (request.Timeout > TimeSpan.Zero)

      { var cts = CancellationTokenSource.CreateLinkedTokenSource(token, new CancellationTokenSource(request.Timeout).Token); token = cts.Token; }

      3. RetryOrchestrator.RetryAsync unnecessarily creates linked source

      await Task.Delay(cappedDuration,
      CancellationTokenSource.CreateLinkedTokenSource(token).Token).ConfigureAwait(false);

       

       

       

      Attachments

        Issue Links

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

          Activity

            People

              jmorris Jeff Morris
              tommyja Tommy Jakobsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty