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

[windows] Queries with stale=false shows errors {case_clause,{error,eacces}} ( rebalance test of 4->3 nodes when queries are run during rebalancing is hung )

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Blocker
    • 2.0-beta-2
    • None
    • storage-engine
    • Security Level: Public
    • single node windows server r2 2008

    Description

      can be reproduced by -t viewquerytests.ViewQueryTests.test_employee_dataset_stale_queries,limit=10000,docs-per-day=20

      data structure:
      200K
      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>}

      6 ddocs\6 views(1 view per ddoc):
      test_view-3bca385
      test_view-43f2b58
      test_view-101c11b
      test_view-a81a852
      test_view-d1adba8
      test_view-7a99269

      map\reduce functions:
      '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] );}}}'
      '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] );}

      }}'
      '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] );}}}'
      'function (doc) { if(doc.job_title !== undefined) emit([doc.join_yr, doc.join_mo, doc.join_day], [doc.name, doc.email] ); }'
      'function (doc) { if(doc.job_title !== undefined) emit([doc.join_yr, doc.join_mo, doc.join_day], [doc.name, doc.email] ); }' + _count as reduce fn
      'function (doc, meta) { if(doc.job_title !== undefined) { var myregexp = new RegExp("^admin"); if(meta.id.match(myregexp)) { emit([doc.join_yr, doc.join_mo, doc.join_day], [doc.name, doc.email] );}

      }}'

      exact query example:
      http://10.1.3.147:8092/default/_design/test_view-a81a852/_view/test_view-a81a852?debug=true&connection_timeout=60000&limit=10000&stale=false

      response:
      {case_clause, {error, eacces}}

      in logs in see updater error:
      [couchdb:error,2012-09-13T11:28:41.955,ns_1@10.1.3.147:<0.14095.7>:couch_log:error:42]Set view `default`, main group `_design/test_view-a81a852`, doc loader error
      error:
      stacktrace: [

      {couch_db,fast_reads,2}

      ,

      {couch_set_view_updater,'-load_changes/7-fun-2-',6}

      ,

      {lists,foldl,3}

      ,

      {couch_set_view_updater,load_changes,7}

      ,

      {couch_set_view_updater,'-update/7-fun-2-',10}

      ]

      Attachments

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

        Activity

          People

            iryna iryna
            iryna iryna
            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