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

[FTS] Bleve match_none query returns "err: unknown query type" in a multi-node environment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.0
    • 4.5.0
    • cbft
    • None
    • Untriaged
    • No

    Description

      Build
      4.5.0-2133

      Testcase
      ./testrunner -i INI_FILE.ini get-cbcollect-info=True,get-coredumps=True,get-logs=False,stop-on-failure=False,cluster=D+F:F:F,GROUP=P0 -t fts.stable_topology_fts.StableTopFTS.test_match_none,items=10000,GROUP=P0

      Looks like this testcase was always failing but never reported an error so we didn't catch it(a test bug).

      [2016-04-15 15:58:49,652] - [fts_base:2617] INFO - Docs in index default_index_1=10000, bucket docs=10000
      [2016-04-15 15:58:49,673] - [fts_base:1091] INFO - Running query {"from": 0, "indexName": "default_index_1", "fields": [], "explain": false, "ctl": {"timeout": 60000, "consistency": {"vectors": {}, "level": ""}}, "query": {"match_none": {}}, "size": 10000000} on node: 172.23.107.234
      [2016-04-15 15:58:49,725] - [rest_client:757] ERROR - http://172.23.107.234:8094/api/index/default_index_1/query error 400 reason: status: 400, content: rest_index: Query, indexName: default_index_1, requestBody: {"from": 0, "indexName": "default_index_1", "fields": [], "explain": false, "ctl": {"timeout": 60000, "consistency": {"vectors": {}, "level": ""}}, "query": {"match_none": {}}, "size": 10000000}, req: &http.Request{Method:"POST", URL:(*url.URL)(0xc8201b8480), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"Accept":[]string{"*/*"}, "User-Agent":[]string{"Python-httplib2/$Rev: 259 $"}, "Accept-Encoding":[]string{"identity"}, "Content-Length":[]string{"194"}, "Content-Type":[]string{"application/json"}, "Authorization":[]string{"Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA=="}}, Body:(*http.body)(0xc821faa4c0), ContentLength:194, TransferEncoding:[]string(nil), Close:false, Host:"172.23.107.234:8094", Form:url.Values{}, PostForm:url.Values{}, MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"172.23.107.140:48832", RequestURI:"/api/index/default_index_1/query", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil)}, err: bleve: QueryBlevePIndexImpl remote client returned status: 400 body: rest_index: QueryPIndex, pindexName: default_index_1_264ef6e2c00427eb_76ac2a42, requestBody: {"ctl":{"timeout":59494,"consistency":{"level":"","vectors":{}}},"query":{"boost":1},"size":10000000,"from":0,"highlight":null,"fields":[],"facets":null,"explain":false}, req: &http.Request{Method:"POST", URL:(*url.URL)(0xc82ddf4e00), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{"User-Agent":[]string{"Go-http-client/1.1"}, "Content-Length":[]string{"169"}, "Authorization":[]string{"Basic QGZ0cy1jYmF1dGg6Mjk0NTFiNmI1NTgyNTYwODlkMWFiNzVmNzllZDE1ZDQ="}, "Content-Type":[]string{"application/json"}, "Accept-Encoding":[]string{"gzip"}}, Body:(*http.body)(0xc829e46700), ContentLength:169, TransferEncoding:[]string(nil), Close:false, Host:"172.23.107.187:8094", Form:url.Values{}, PostForm:url.Values{}, MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"172.23.107.234:51761", RequestURI:"/api/pindex/default_index_1_264ef6e2c00427eb_76ac2a42/query", TLS:(*tls.ConnectionState)(nil), Cancel:(<-chan struct {})(nil)}, err: bleve: BleveDest.Query parsing searchRequest, req: {"ctl":{"timeout":59494,"consistency":{"level":"","vectors":{}}},"query":{"boost":1},"size":10000000,"from":0,"highlight":null,"fields":[],"facets":null,"explain":false}, err: unknown query type
      

      Attachments

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

        Activity

          People

            apiravi Aruna Piravi (Inactive)
            apiravi Aruna Piravi (Inactive)
            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