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

Goroutine failure: http: panic serving 10.17.2.171:56372: interface conversion: interface is map[string]interface {}, not string

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 4.1.2, 4.5.1, 5.0.0
    • 4.1.0, 4.1.1, 5.0.0
    • query
    • None
    • 4.5.0-770
    • Untriaged
    • Centos 64-bit
    • Yes

    Description

       

      Test which fails:
      ./testrunner -i rqg1.ini -p gsi_type=forestdb -p primary_indx_type=GSI -p nodes_init=1 -p doc-per-day=1 -t tuqquery.tuq.QueryTests.test_prepared_any_no_in_clause

      RUN QUERY PREPARE SELECT name, email FROM default WHERE (ANY skill IN default.skills SATISFIES skill = 'skill2010' end)AND (ANY vm IN default.VMs SATISFIES vm.RAM = 5 end) AND NOT (job_title = 'Sales') ORDER BY name

      status, content, header = self._http_request(api, 'POST', timeout=timeout, headers=headers)

      Results in content are sent via post request:

      RUN QUERY {u'operator': {u'#operator': u'Sequence', u'~children': [{u'#operator': u'Authorize', u'privileges':

      {u'default:default': 1}

      , u'child': {u'#operator': u'Sequence', u'~children': [{u'#operator': u'Sequence', u'~children': [

      {u'index': u'#primary', u'#operator': u'PrimaryScan', u'namespace': u'default', u'using': u'gsi', u'keyspace': u'default'}

      ,

      {u'keyspace': u'default', u'#operator': u'Fetch', u'namespace': u'default'}

      , {u'#operator': u'Parallel', u'~child': {u'#operator': u'Sequence', u'~children': [

      {u'#operator': u'Filter', u'condition': u'((any `skill` in (`default`.`skills`) satisfies (`skill` = "skill2010") end and any `vm` in (`default`.`VMs`) satisfies ((`vm`.`RAM`) = 5) end) and (not ((`default`.`job_title`) = "Sales")))'}

      , {u'#operator': u'InitialProject', u'result_terms': [

      {u'expr': u'(`default`.`name`)'}

      ,

      {u'expr': u'(`default`.`email`)'}

      ]}]}}]}, {u'#operator': u'Order', u'sort_terms': [

      {u'expr': u'(`default`.`name`)'}

      ]},

      {u'#operator': u'FinalProject'}

      ]}},

      {u'#operator': u'Stream'}

      ]}, u'text': u"PREPARE SELECT name, email FROM default WHERE (ANY skill IN default.skills SATISFIES skill = 'skill2010' end)AND (ANY vm IN default.VMs SATISFIES vm.RAM = 5 end) AND NOT (job_title = 'Sales') ORDER BY name", u'encoded_plan': u'H4sIAAAJbogA/5yTb2/aMBDGv4rlvmgiAYLxRx1SX2Rr0JBWQEm1qVqnxkmu1K3jMNugsop99p2dFCjsRVcBUnJ+7ne+u4dnCjIrc8hvF4JJOqS0QSUrAJ/Oeh8H7V6aNtvdTtrssX7aPEt7g2a/383PBt1Bp9PNUF0uQDFTKjp8pie7FxrDryWyASV/snsucgXI//FaFCzNfan4b6tyondR3iSaKV4wtY4zbLNBuczhCaMniyqMoUdY6wXLbOs53LGlMPUsjqNLzeUcI3PN6abxus4ITHb/P7hDwIwpJgSIbTfvmsmICwPKjrWUOTe8tMv1PCbXJNGPXIiEcEm8pL5F0qqiOvGJZobrOw4aj2vpObmh7vFDu9O+oT4BmRPmfshbFUewb5cHJM+qWkkUXGL8nPQdwncMT5bGCnbZD2V6a7gR4LQ3NGYCNJb1/aNpjSU2x8RMlQ+Q2REr0Ai5xeYL7aYCTwsr3OfbNSQV6x+nUDAu7PFP/OD3oOJU5W6wulRvLHOEGHG5u7I9pmjDFRcwB223XSOGLxYZdjaHiNgoYEWVrPlcMrNUYHPd7VHwoEu5+zO7N5QaeDLWY1E4C6KQxOHX8PMVsaIGcZlkFE0vSV2YfP8SosoLJtfErZ+MJy9nrcovJA6uxvFoHMa14pycbp1y6pYcTC4qxKrYz0eL7CWvihZ6wzqjMoZNIpPpFfG2ZrBo54RTn0yjizAin67d1enmbwAAAP//G4mtn8cEAAA=', u'name': u'849604bb-031b-4a5b-8b46-553d8636113c', u'signature': {u'email': u'json', u'name': u'json'}}

      status, content, header = self._http_request(api, 'POST', timeout=timeout, headers=headers)

      here content reports:
      BadStatusLine: BadStatusLine("''",)

      api is:
      http://172.23.107.9:8093/query/service?prepared=%7B%22operator%22%3A%20%7B%22%23operator%22%3A%20%22Sequence%22%2C%20%22~children%22%3A%20%5B%7B%22%23operator%22%3A%20%22Authorize%22%2C%20%22privileges%22%3A%20%7B%22default%3Adefault%22%3A%201%7D%2C%20%22child%22%3A%20%7B%22%23operator%22%3A%20%22Sequence%22%2C%20%22~children%22%3A%20%5B%7B%22%23operator%22%3A%20%22Sequence%22%2C%20%22~children%22%3A%20%5B%7B%22index%22%3A%20%22%23primary%22%2C%20%22%23operator%22%3A%20%22PrimaryScan%22%2C%20%22namespace%22%3A%20%22default%22%2C%20%22using%22%3A%20%22gsi%22%2C%20%22keyspace%22%3A%20%22default%22%7D%2C%20%7B%22keyspace%22%3A%20%22default%22%2C%20%22%23operator%22%3A%20%22Fetch%22%2C%20%22namespace%22%3A%20%22default%22%7D%2C%20%7B%22%23operator%22%3A%20%22Parallel%22%2C%20%22~child%22%3A%20%7B%22%23operator%22%3A%20%22Sequence%22%2C%20%22~children%22%3A%20%5B%7B%22%23operator%22%3A%20%22Filter%22%2C%20%22condition%22%3A%20%22((any%20%60skill%60%20in%20(%60default%60.%60skills%60)%20satisfies%20(%60skill%60%20%3D%20%5C%22skill2010%5C%22)%20end%20and%20any%20%60vm%60%20in%20(%60default%60.%60VMs%60)%20satisfies%20((%60vm%60.%60RAM%60)%20%3D%205)%20end)%20and%20(not%20((%60default%60.%60job_title%60)%20%3D%20%5C%22Sales%5C%22)))%22%7D%2C%20%7B%22%23operator%22%3A%20%22InitialProject%22%2C%20%22result_terms%22%3A%20%5B%7B%22expr%22%3A%20%22(%60default%60.%60name%60)%22%7D%2C%20%7B%22expr%22%3A%20%22(%60default%60.%60email%60)%22%7D%5D%7D%5D%7D%7D%5D%7D%2C%20%7B%22%23operator%22%3A%20%22Order%22%2C%20%22sort_terms%22%3A%20%5B%7B%22expr%22%3A%20%22(%60default%60.%60name%60)%22%7D%5D%7D%2C%20%7B%22%23operator%22%3A%20%22FinalProject%22%7D%5D%7D%7D%2C%20%7B%22%23operator%22%3A%20%22Stream%22%7D%5D%7D%2C%20%22text%22%3A%20%22PREPARE%20SELECT%20name%2C%20email%20FROM%20default%20WHERE%20(ANY%20skill%20IN%20default.skills%20SATISFIES%20skill%20%3D%20%27skill2010%27%20end)AND%20(ANY%20vm%20IN%20default.VMs%20SATISFIES%20vm.RAM%20%3D%205%20end)%20AND%20%20NOT%20(job_title%20%3D%20%27Sales%27)%20ORDER%20BY%20name%22%2C%20%22encoded_plan%22%3A%20%22H4sIAAAJbogA%2F5yTb2%2FaMBDGv4rlvmgiAYLxRx1SX2Rr0JBWQEm1qVqnxkmu1K3jMNugsop99p2dFCjsRVcBUnJ%2B7ne%2Bu4dnCjIrc8hvF4JJOqS0QSUrAJ%2FOeh8H7V6aNtvdTtrssX7aPEt7g2a%2F383PBt1Bp9PNUF0uQDFTKjp8pie7FxrDryWyASV%2FsnsucgXI%2F%2FFaFCzNfan4b6tyondR3iSaKV4wtY4zbLNBuczhCaMniyqMoUdY6wXLbOs53LGlMPUsjqNLzeUcI3PN6abxus4ITHb%2FP7hDwIwpJgSIbTfvmsmICwPKjrWUOTe8tMv1PCbXJNGPXIiEcEm8pL5F0qqiOvGJZobrOw4aj2vpObmh7vFDu9O%2BoT4BmRPmfshbFUewb5cHJM%2BqWkkUXGL8nPQdwncMT5bGCnbZD2V6a7gR4LQ3NGYCNJb1%2FaNpjSU2x8RMlQ%2BQ2REr0Ai5xeYL7aYCTwsr3OfbNSQV6x%2BnUDAu7PFP%2FOD3oOJU5W6wulRvLHOEGHG5u7I9pmjDFRcwB223XSOGLxYZdjaHiNgoYEWVrPlcMrNUYHPd7VHwoEu5%2BzO7N5QaeDLWY1E4C6KQxOHX8PMVsaIGcZlkFE0vSV2YfP8SosoLJtfErZ%2BMJy9nrcovJA6uxvFoHMa14pycbp1y6pYcTC4qxKrYz0eL7CWvihZ6wzqjMoZNIpPpFfG2ZrBo54RTn0yjizAin67d1enmbwAAAP%2F%2FG4mtn8cEAAA%3D%22%2C%20%22name%22%3A%20%22849604bb-031b-4a5b-8b46-553d8636113c%22%2C%20%22signature%22%3A%20%7B%22email%22%3A%20%22json%22%2C%20%22name%22%3A%20%22json%22%7D%7D

      Checked query log:

      2016/06/14 16:50:09 http: panic serving 10.17.2.171:56372: interface conversion: interface is map[string]interface {}, not string
      goroutine 1840 [running]:
      net/http.func·011()
      /usr/local/go/src/net/http/server.go:1130 +0xbb fp=0xc2080b9708 sp=0xc2080b9628
      runtime.call16(0xc2080b9ef0, 0xc20828c4b0, 0x0)
      /usr/local/go/src/runtime/asm_amd64.s:401 +0x45 fp=0xc2080b9720 sp=0xc2080b9708
      runtime.gopanic(0xf0fee0, 0xc208031d40)
      /usr/local/go/src/runtime/panic.go:387 +0x3a8 fp=0xc2080b9788 sp=0xc2080b9720
      runtime.assertE2T(0xc440e0, 0xc401e0, 0xc20828c9f0)
      /usr/local/go/src/runtime/iface.go:225 +0x1d5 fp=0xc2080b97b8 sp=0xc2080b9788
      github.com/couchbase/query/server/http.getPrepared(0x7f7b6dc5ead8, 0xc20841c1f0, 0x0, 0x0, 0x0, 0x0, 0x0)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/server/http/service_request.go:305 +0x121 fp=0xc2080b9830 sp=0xc2080b97b8
      github.com/couchbase/query/server/http.newHttpRequest(0x7f7b6dc5e228, 0xc208046f00, 0xc20824a680, 0x7f7b6dc54868, 0xc20815d440, 0x4000000, 0xc208349b30)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/server/http/service_request.go:79 +0x419 fp=0xc2080b9ae0 sp=0xc2080b9830
      github.com/couchbase/query/server/http.(*HttpEndpoint).ServeHTTP(0xc208078370, 0x7f7b6dc5e228, 0xc208046f00, 0xc20824a680)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/goproj/src/github.com/couchbase/query/server/http/service_endpoint.go:125 +0x8d fp=0xc2080b9ba8 sp=0xc2080b9ae0
      github.com/gorilla/mux.(*Router).ServeHTTP(0xc20805ff40, 0x7f7b6dc5e228, 0xc208046f00, 0xc20824a680)
      /home/couchbase/jenkins/workspace/couchbase-server-unix/godeps/src/github.com/gorilla/mux/mux.go:98 +0x297 fp=0xc2080b9cb0 sp=0xc2080b9ba8
      net/http.serverHandler.ServeHTTP(0xc20822e000, 0x7f7b6dc5e228, 0xc208046f00, 0xc20824a680)
      /usr/local/go/src/net/http/server.go:1703 +0x19a fp=0xc2080b9d08 sp=0xc2080b9cb0
      net/http.(*conn).serve(0xc208046b40)
      /usr/local/go/src/net/http/server.go:1204 +0xb57 fp=0xc2080b9fd8 sp=0xc2080b9d08
      runtime.goexit()
      /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0xc2080b9fe0 sp=0xc2080b9fd8
      created by net/http.(*Server).Serve
      /usr/local/go/src/net/http/server.go:1751 +0x35e
      2016/06/14 16:50:09 http: panic serving 10.17.2.171:56374: interface conversion: interface is map[string]interface {}, not string
      goroutine 1594 [running]:

      Attachments

        Issue Links

          Activity

            People

              marco.greco Marco Greco (Inactive)
              Prerna.Manaktala Prerna Manaktala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty