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

View Engine not detecting meta.id if doc has xattrs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.0.0
    • 5.0.0
    • memcached, view-engine
    • None
    • Untriaged
    • Unknown

    Description

      Tested on build 5.0.0-2109 and 5.0.0-2140
      The following simple view does not emit documents containing xattrs:

      function (doc, meta) {
        emit(meta.id, null);
      }
      

      e.g. if I have 3 docs in my cluster, 2 of which don't contain xattrs and 1 which contains xattrs, the view will only yield 2 rows. If I modify the view slightly to (for example):

      function (doc, meta) {
        emit(doc.name, meta.id);
      }
      

      Then all 3 documents are returned by the view and meta.id is displayed correctly for all three documents.

      Attachments

        Issue Links

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

          Activity

            People

              trond Trond Norbye
              dhaikney David Haikney (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty