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

view queries fails with error 'missing' during rebalance in

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Blocker
    • 2.0
    • None
    • ns_server
    • Security Level: Public

    Description

      can be reproduced by test:
      -t viewquerytests.ViewQueryTests.test_employee_dataset_startkey_endkey_queries_rebalance_incrementaly,skip_rebalance=true,docs-per-day=1000

      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 querying
      3. rebalance incrementally
      4. 2 nodes are rebalanced successfully, but when rebalance the 3d missing error appears

      Views structure are:
      Views : ['test_view-0df05be : 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-bdde163 : 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-02bf743 : 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-503e54a : 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-86300c8 : 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-02ab975 : map_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] );}

      }}, reduce_fn=None']

      Updater is going on and then it start returning missing error

      [couchdb:debug,2012-10-10T5:36:21.311,ns_1@10.3.121.104:couch_task_status:couch_log:debug:36]New task status for <0.25258.0>: [

      {changes_done,49707}

      ,

      {design_documents, [<<"_design/test_view-9e1c818">>]}

      ,

      {indexer_type,main}

      ,

      {initial_build,false}

      ,

      {progress,41}

      ,

      {set,<<"default">>}

      ,

      {signature, <<"bfab73edaa0aa97168e9e600f1e7e739">>}

      ,

      {started_on,1349872528}

      ,

      {total_changes,120662}

      ,

      {type,indexer}

      ,

      {updated_on,1349872581}

      ]
      [couchdb:info,2012-10-10T5:36:21.310,ns_1@10.3.121.104:<0.25258.0>:couch_log:info:39]Updater checkpointing set view `default` update for main group `_design/test_view-9e1c818`
      [couchdb:info,2012-10-10T5:36:21.329,ns_1@10.3.121.104:<0.17526.0>:couch_log:info:39]Compaction for db "default/171" completed.
      ...
      [couchdb:info,2012-10-10T5:36:22.128,ns_1@10.3.121.104:<0.27118.0>:couch_log:info:39]10.3.1.11 - - GET /default/_design/test_view-9e1c818/_view/test_view-9e1c818?end_key=%5B2008%2C7%2C1%5D&start_key=%5B2008%2C0%2C1%5D&connection_timeout=60000&debug=true&inclusive_end=true 404
      [couchdb:debug,2012-10-10T5:36:22.138,ns_1@10.3.121.104:<0.27118.0>:couch_log:debug:36]httpd 404 error response:

      {"error":"not_found","reason":"missing"}

      Error disappear on 40-50% of rebalance

      Attachments

        1. collect_info104.zip
          5.62 MB
        2. collect_info105.zip
          15.52 MB
        3. collect_info110.zip
          405 kB
        4. collect_info111.zip
          403 kB
        5. collect_info120.zip
          407 kB
        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:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty