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

Fail fast when server returns Query error instead of while results are enumerated

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • backlog-3.0
    • None
    • library
    • None
    • 1

    Description

      In PS, if the .NET gRPC client will not throw an exeception on error until the results are enumerated. This makes it seem like call succeeds until it blows up, even if we expect failure. An example would be including a bucket name that does not exist in a query:

      "SELECT * FROM NOTEXISTENTBUCKET limit 1;"
      

      Instead, the AsyncServerStreamingCall.GetStatus() can be called can be called just after the query and the RpcExeception will be thrown.

      Note: ensure that calling GetStatus() first will not load the entire response into memory causing potential OOM exceptions.

      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
              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