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

Query does not recover after service restart

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.4.0
    • None
    • None
    • 2.3.0
    • SDK50: Sample App, DNS-SRV

    Description

      After couchbase server restart, query fails always with Couchbase.N1QL.QueryClient - System.InvalidOperationException: An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.
      Logs http://sdk-testresults.couchbase.com.s3.amazonaws.com/201669154343161-1.gz

      Attachments

        For Gerrit Dashboard: NCBC-1142
        # Subject Branch Project Status CR V

        Activity

          jmorris Jeff Morris added a comment -

          This appears to be related somehow to MOI.

          jmorris Jeff Morris added a comment - This appears to be related somehow to MOI.

          I tried to look through this code but struggled to see the problem. Please can you give me a hand Jeff Morris?

          mike.goldsmith Michael Goldsmith added a comment - I tried to look through this code but struggled to see the problem. Please can you give me a hand Jeff Morris ?
          jmorris Jeff Morris added a comment -

          Moving out to 2.4.0.

          jmorris Jeff Morris added a comment - Moving out to 2.4.0.

          I've created a commit that improves logging as we what is happening is that a N1QL query is being retried, but as the requests are failing eventually all the Query URIs are being treated as invalid. When this happens a null string is being used to try and send the request using the HttpClient and the InvalidOperationException is being thrown.

          The change is to log when an invalid query URI has been retrieved and return a failed result instead.

          mike.goldsmith Michael Goldsmith added a comment - I've created a commit that improves logging as we what is happening is that a N1QL query is being retried, but as the requests are failing eventually all the Query URIs are being treated as invalid. When this happens a null string is being used to try and send the request using the HttpClient and the InvalidOperationException is being thrown. The change is to log when an invalid query URI has been retrieved and return a failed result instead.

          People

            mike.goldsmith Michael Goldsmith
            subhashni Subhashni Balakrishnan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty