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

Deleteing a design doc during rebalance gives "view_undefined" error while querying other views

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 2.0-beta
    • 2.0
    • view-engine
    • Security Level: Public
    • build 2.0.0c-705-rel

    Description

      Deleteing a design doc during rebalance gives "view_undefined" error while querying other views. Steps to reproduce:

      1. Create a sasl bucket and load 1M items.
      2. Create 5 design docs (2 views each) and allow initial indexing to finish.
      3. Add one node and rebalance.
      4. During rebalance delete 1 design doc.
      5. After rebalance is finished, query all views. In one the view, "view_undefined" error is returned e.g.

      root@ubuntu1104-64:~/cisco# curl -X GET 'http://saslbucket:saslpass@10.1.3.67:8092/saslbucket/_design/d1/_view/v2?stale=ok&limit=20'
      {"total_rows":50199,"rows":[

      {"id":"70one-00029153d12ae1c9","key":"70one-00029153d12ae1c9","value":"70one-00029153d12ae1c9"}

      ,

      {"id":"70one-0004d0b59e19461f","key":"70one-0004d0b59e19461f","value":"70one-0004d0b59e19461f"}

      ,

      {"id":"70one-00056c20eb5a0295","key":"70one-00056c20eb5a0295","value":"70one-00056c20eb5a0295"}

      ,

      {"id":"70one-0006246bee639c7a","key":"70one-0006246bee639c7a","value":"70one-0006246bee639c7a"}

      ,

      {"id":"70one-0006dd05ea1e999d","key":"70one-0006dd05ea1e999d","value":"70one-0006dd05ea1e999d"}

      ,

      {"id":"70one-000871c1fc726f0b","key":"70one-000871c1fc726f0b","value":"70one-000871c1fc726f0b"}

      ,

      {"id":"70one-000958fdaefe0dd0","key":"70one-000958fdaefe0dd0","value":"70one-000958fdaefe0dd0"}

      ,

      {"id":"70one-000cb7efa8a05429","key":"70one-000cb7efa8a05429","value":"70one-000cb7efa8a05429"}

      ,

      {"id":"70one-000d54aadcedee07","key":"70one-000d54aadcedee07","value":"70one-000d54aadcedee07"}

      ,

      {"id":"70one-000dd3543ac84d90","key":"70one-000dd3543ac84d90","value":"70one-000dd3543ac84d90"}

      ,

      {"id":"70one-000e82a96e908e73","key":"70one-000e82a96e908e73","value":"70one-000e82a96e908e73"}

      ,

      {"id":"70one-00106ac9184e7d54","key":"70one-00106ac9184e7d54","value":"70one-00106ac9184e7d54"}

      ,

      {"id":"70one-00126b47d5502dfb","key":"70one-00126b47d5502dfb","value":"70one-00126b47d5502dfb"}

      ,

      {"id":"70one-0012a83c1e6cda9d","key":"70one-0012a83c1e6cda9d","value":"70one-0012a83c1e6cda9d"}

      ,

      {"id":"70one-00146eefb7aa8cc4","key":"70one-00146eefb7aa8cc4","value":"70one-00146eefb7aa8cc4"}

      ,

      {"id":"70one-0014fcb3db4c8459","key":"70one-0014fcb3db4c8459","value":"70one-0014fcb3db4c8459"}

      ,

      {"id":"70one-00166474c59c9aa8","key":"70one-00166474c59c9aa8","value":"70one-00166474c59c9aa8"}

      ,

      {"id":"70one-001a3678cacf4ea1","key":"70one-001a3678cacf4ea1","value":"70one-001a3678cacf4ea1"}

      ,

      {"id":"70one-001b8e3cf76f4e64","key":"70one-001b8e3cf76f4e64","value":"70one-001b8e3cf76f4e64"}

      ,

      {"id":"70one-001bf9e1206bf15a","key":"70one-001bf9e1206bf15a","value":"70one-001bf9e1206bf15a"}

      ],
      "errors":[
      {"from":"http://10.1.3.70:8092/_view_merge/?stale=ok&limit=20","reason":"

      {<<\"unknown_error\">>,<<\"view_undefined\">>}

      "}
      ]
      }

      The query returns data as well as the error. Diagnostics are attached.

      Attachments

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

        Activity

          People

            farshid Farshid Ghods (Inactive)
            deepkaran.salooja Deepkaran Salooja
            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