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

View returns partial results

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.0-developer-preview-4
    • 2.0-developer-preview-4
    • None
    • Security Level: Public
    • None

    Description

      Created 10 nodes cluster. Created a view: {"reduce":{"map":"function (doc)

      {\n emit(doc._id, null);\n}

      ","reduce":"_count"}. Uploaded 100k json documents using mcsoda. Queried a view with stale=false. Removed one node from the cluster. Queried the view with stale=false again while rebalance was in progress. View returned partial result:

      {"rows":[

      {"key":null,"value":88693}

      ],
      "errors":[
      {"from":"http://10.17.1.200:9503/_view_merge/?stale=false","reason":"{<<\"noproc\">>,<<\"{gen_server,call,[<0.2544.0>,

      {add,<0.6822.0>}

      ,infinity]}\">>}"}
      ]}

      This state is permanent: the view keeps returning partial result with this error. There are plenty of compaction_loop_died errors in the log on the failed node:

      =========================CRASH REPORT=========================
      crasher:
      initial call: couchbase_compaction_daemon:init/1
      pid: <0.12968.0>
      registered_name: couchbase_compaction_daemon
      exception exit: {compaction_loop_died,
      {noproc,
      {gen_server,call,
      [<0.2544.0>,

      {add,<0.12969.0>}

      ,infinity]}}}
      in function gen_server:terminate/6
      ancestors: [<0.12967.0>,ns_server_sup,ns_server_cluster_sup,<0.42.0>]
      messages: []
      links: [<0.12967.0>]
      dictionary: []
      trap_exit: true
      status: running
      heap_size: 233
      stack_size: 24
      reductions: 1074
      neighbours:

      Attaching logs and diag from the node where the error happens.

      Attachments

        1. logs.tar.bz2
          106 kB
        2. ns-diag-20120124121218.txt.bz2
          514 kB
        3. ns-diag-20120125183105.txt.bz2
          347 kB
        4. reopened_diag2.bz2
          521 kB
        5. reopened_log1.bz2
          188 kB
        6. reopened_log2.bz2
          187 kB
        7. verbose_log.tar.bz2
          2.84 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            alkondratenko Aleksey Kondratenko (Inactive)
            Aliaksey Artamonau Aliaksey Artamonau (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty