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

"Undefined set view `default` for `_design/dev_t` design document." on view after rebalance

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0-developer-preview-3
    • Fix Version/s: 2.0-developer-preview-4
    • Component/s: ns_server
    • Security Level: Public
    • Labels:
      None
    • Environment:
      Development environment

      Description

      Minimized down to the following:

      1) started 2 nodes development cluster
      2) setup first node
      3) upload 5k of 10k documents (via mc-loader from github.com/alk/mc-loader fork): cat tiny-keyset | ./mc-loader lh:12001 - valuesize 10000 (not with valuesize option mc-loader ignores values, it honors only keys from data set)
      4) wait till write queue drops to 0
      5) upload 5k of small json docs (from tiny-keyset) : cat tinykey | ./mc-loader lh:12001 - (not valuesize is not passed)
      6) wait till write queue drops to 0
      7) create 'identity' view via 'Create Development View' button (in my case _design/dev_t with view name t)
      8) run this view in full mode and observe that everything is ok (5k rows)

      9) add second node and rebalance
      10) wait till write queue drops to 0

      11) run same view and observe that only half items is there. Most of the time I was getting same half items silently, but this time I'm also getting this:

      pi:~/src/altoros/moxi/repo20# wget O 'http://192.168.1.103:9500/default/_design/dev_t/_view/t?full_set=true&connection_timeout=2000000&limit=10&skip=0' | json_reformat
      -2011-12-28 17:10:20- http://192.168.1.103:9500/default/_design/dev_t/_view/t?full_set=true&connection_timeout=2000000&limit=10&skip=0
      Connecting to 192.168.1.103:9500... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: unspecified [text/plain]
      Saving to: `STDOUT'

      [ <=> ] 642 --.-K/s in 0s

      2011-12-28 17:10:20 (2.15 MB/s) - written to stdout [642]

      {
      "total_rows": 2500,
      "rows": [

      { "id": "00000008", "key": "00000008", "value": null }

      ,

      { "id": "00000009", "key": "00000009", "value": null }

      ,

      { "id": "00000018", "key": "00000018", "value": null }

      ,

      { "id": "00000019", "key": "00000019", "value": null }

      ,

      { "id": "00000028", "key": "00000028", "value": null }

      ,

      { "id": "00000029", "key": "00000029", "value": null }

      ,

      { "id": "00000038", "key": "00000038", "value": null }

      ,

      { "id": "00000039", "key": "00000039", "value": null }

      ,

      { "id": "00000048", "key": "00000048", "value": null }

      ,

      { "id": "00000049", "key": "00000049", "value": null }

      ],
      "errors": [

      { "from": "local", "reason": "Undefined set view `default` for `_design/dev_t` design document." }

      ]
      }
      pi:~/src/altoros/moxi/repo20# wget O 'http://192.168.1.103:9501/default/_design/dev_t/_view/t?full_set=true&connection_timeout=2000000&limit=10&skip=0' | json_reformat
      -2011-12-28 17:10:34- http://192.168.1.103:9501/default/_design/dev_t/_view/t?full_set=true&connection_timeout=2000000&limit=10&skip=0
      Connecting to 192.168.1.103:9501... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: unspecified [text/plain]
      Saving to: `STDOUT'

      [ <=> ] 675 --.-K/s in 0.001s

      2011-12-28 17:10:34 (623 KB/s) - written to stdout [675]

      {
      "total_rows": 2500,
      "rows": [

      { "id": "00000008", "key": "00000008", "value": null }

      ,

      { "id": "00000009", "key": "00000009", "value": null }

      ,

      { "id": "00000018", "key": "00000018", "value": null }

      ,

      { "id": "00000019", "key": "00000019", "value": null }

      ,

      { "id": "00000028", "key": "00000028", "value": null }

      ,

      { "id": "00000029", "key": "00000029", "value": null }

      ,

      { "id": "00000038", "key": "00000038", "value": null }

      ,

      { "id": "00000039", "key": "00000039", "value": null }

      ,

      { "id": "00000048", "key": "00000048", "value": null }

      ,

      { "id": "00000049", "key": "00000049", "value": null }

      ],
      "errors": [

      { "from": "http://192.168.1.103:9500/_view_merge/", "reason": "Undefined set view `default` for `_design/dev_t` design document." }

      ]
      }

      Note that somehow first uploading 10k 0-s of crap and then rewriting it with json is seemingly required for reproduction.

      Will attach diags from both nodes and tiny keyset

      1. diag.xz
        89 kB
        Aleksey Kondratenko
      2. diag2.xz
        240 kB
        Aleksey Kondratenko
      3. tiny-keyset.xz
        2 kB
        Aleksey Kondratenko
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        steve Steve Yen added a comment -

        Hi Aliaksey A,
        Any news/status on this one?
        Thanks,
        Steve

        Show
        steve Steve Yen added a comment - Hi Aliaksey A, Any news/status on this one? Thanks, Steve
        Hide
        Aliaksey Artamonau Aliaksey Artamonau added a comment -

        Diags seem to be from different clusters. The only error I'm seeing in the first diag is fixed by http://review.couchbase.org/12091. I'm closing it as fixed since I'm not able to reproduce it.

        Show
        Aliaksey Artamonau Aliaksey Artamonau added a comment - Diags seem to be from different clusters. The only error I'm seeing in the first diag is fixed by http://review.couchbase.org/12091 . I'm closing it as fixed since I'm not able to reproduce it.

          People

          • Assignee:
            Aliaksey Artamonau Aliaksey Artamonau
            Reporter:
            alkondratenko Aleksey Kondratenko (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