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

5.0.0-3294 Build Sanity broken due to querying views fails with error "not_supported"

    XMLWordPrintable

Details

    • Untriaged
    • Yes

    Description

      Build : 5.0.0-3294
      Last good build : 5.0.0-3291

      Querying views is failing since build 5.0.0-3294.
      [2017-07-12 17:03:11,462] - [rest_client:535] INFO - index query url: http://172.23.122.112:8092/default/_design/dev_ddoc1/_view/views0?stale=false&connection_timeout=60000&full_set=true
      [2017-07-12 17:03:12,026] - [rest_client:783] ERROR - GET http://172.23.122.112:8092/default/_design/dev_ddoc1/_view/views0?stale=false&connection_timeout=60000&full_set=true body: headers:

      {'Content-Type': 'application/json', 'Accept': '*/*', 'Authorization': 'Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==\n'}

      error: 500 reason: error

      {"error":"error","reason":"not_supported"}

      auth: Administrator:password

      More info from the test log:

      ****************** Error report *********************
      Failure message is: Exception: DDoc=test_view-d50ba69; View={"test_view-d50ba69": {"map": "function (doc) { if(doc.job_title !== undefined) emit([doc.join_yr, doc.join_mo, doc.join_day], [doc.name, doc.email] ); }"}};:{'stale': 'false', 'connection_timeout': 60000}: ERROR: Error occured querying view test_view-d50ba69: {"error":"error","reason":"not_supported"}
      

      Test case info:

      Test uses employee data set:
      -documents are structured as

      {"name": name<string>, "join_yr" : year<int>, "join_mo" : month<int>, "join_day" : day<int>, "email": email<string>, "job_title" : title<string>, "type" : type<string>, "desc" : desc<tring>}

      Steps to repro:
      1. Start load data
      2. start queries: stale, group, starkey/endkey, stratkey_docid

      Views structure are:
      Views : ['test_view-d50ba69 : map_fn=function (doc)

      { if(doc.job_title !== undefined) emit([doc.join_yr, doc.join_mo, doc.join_day], [doc.name, doc.email] ); }, reduce_fn=None', 'test_view-4d5a843 : map_fn=function (doc) { if(doc.job_title !== undefined) { var myregexp = new RegExp("^UI "); if(doc.job_title.match(myregexp)){ emit([doc.join_yr, doc.join_mo, doc.join_day], [doc.name, doc.email] );}}}, reduce_fn=None', 'test_view-30d0ec8 : map_fn=function (doc) { if(doc.job_title !== undefined) { var myregexp = new RegExp("^System "); if(doc.job_title.match(myregexp)){ emit([doc.join_yr, doc.join_mo, doc.join_day], [doc.name, doc.email] );}}}, reduce_fn=None', 'test_view-e2a5841 : map_fn=function (doc) { if(doc.job_title !== undefined) { var myregexp = new RegExp("^Senior "); if(doc.job_title.match(myregexp)){ emit([doc.join_yr, doc.join_mo, doc.join_day], [doc.name, doc.email] );}}}, reduce_fn=None', 'test_view-a43fa08 : map_fn=function (doc) { if(doc.job_title !== undefined) emit([doc.join_yr, doc.join_mo, doc.join_day], [doc.name, doc.email] ); }

      , reduce_fn=_count', 'test_view-0c2cb97 : map_fn=function (doc, meta) { if(doc.job_title !== undefined) { var myregexp = new RegExp("^System "); if(doc.job_title.match(myregexp))

      { emit([doc.join_yr, doc.join_mo, doc.join_day], [doc.name, doc.email] );}

      }}, reduce_fn=None']

      Testcase :
      ./testrunner -i node_conf.ini get-cbcollect-info=True,get-couch-dbinfo=True,skip_cleanup=False -t view.viewquerytests.ViewQueryTests.test_employee_dataset_all_queries,limit=1000,docs-per-day=2,wait_persistence=true,timeout=1200,nodes_init=1

      This might have been caused by the following commit :
      Commit: 7c3d05975973be399e2b6978898953df8820864f (in build: 3294)
      Author: Dave Rigby
      MB-23649: Set dcp_noop_mandatory_for_v5_features value to 'true' by default

      Require that v5 features (DCP_OPEN_INCLUDE_XATTRS |
      DCP_OPEN_COLLECTIONS) have enabled DCP no-op for them to succeed.

      Change-Id: I5ea005a5ac9d751afb7a172341a018b42456cb78
      Reviewed-on: http://review.couchbase.org/80552
      Tested-by: Build Bot
      Reviewed-by: Daniel Owen

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mihir.kamdar Mihir Kamdar (Inactive)
            mihir.kamdar Mihir Kamdar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty