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

Switching from asynchronous to synchronous context causes some bucket methods to hang

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 2.2.2
    • 2.1.0
    • library
    • Server 3.0.3 on Windows 2012

    Description

      The following asynchronous methods never complete when called from a synchronous context:
      IBucket.ExistsAsync()
      IBucket.QueryAsync() with a query containing StartKey and EndKey

      Example:
      bool Exists(string id)

      { return bucket.ExistsAsync(id).ConfigureAwait(false).GetAwaiter().GetResult(); }

      The symptom does not occur when run from unit tests, but happens with 100% regularity inside an ASP.NET WebApi service. No exceptions are thrown, the task just never returns.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty