Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-23245

[N1QL][CURL] Occasionally setting the connect-timeout option results in a panic

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.0.0
    • 5.0.0
    • query
    • None
    • 5.0.0-2194
    • Untriaged
    • Unknown

    Description

      When I execute this command 

      /opt/couchbase/bin/cbq -u Administrator -p password -s="select curl('POST', 'http://172.23.106.24:8093/query/service', {'data' : 'statement=select * from default', 'user':'Administrator:password','connect-timeout':10})" inside my VM, sometimes I get the correct result which is an empty result, but other times I get this panic. It seems like the higher I make the connect-timeout the more the panic appears. Also no matter how high I make the connection-timeout I do not ever get the results of select * from default (without the connect-timeout option specified the results from select * from default will appear correctly)

      {

          "requestID": "80563ad3-ea7b-4e08-90bf-539f7fd1cf0b",

          "signature": {

              "$1": "object"

          },

          "results": [

          ],

          "errors": [

              {

                  "code": 5001,

                  "msg": "Panic: not supported converstion to c long"

              }

          ],

          "status": "stopped",

          "metrics": {

              "elapsedTime": "3.305539ms",

              "executionTime": "3.281305ms",

              "resultCount": 0,

              "resultSize": 0,

              "errorCount": 1

          }

      }

      Attachments

        For Gerrit Dashboard: MB-23245
        # Subject Branch Project Status CR V

        Activity

          People

            ajay.bhullar Ajay Bhullar
            ajay.bhullar Ajay Bhullar
            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