Details
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("''",)
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
- blocks
-
MB-19612 4.5.1 Minor Release
- Closed