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

[RN 2.0.1] Map function failure in a view for a document causes it to be unavailable for all other views in the design document

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: None
    • Security Level: Public

      Description

      As per Filipe's comments:

      One thing to note is, when the map function of a view fails with a document X, map results for other views of the same design document won't be computed for that same document X.
      Only way to avoid this is by having the views in different design documents. This is a limitation inherited from Apache CouchDB, maybe we can get rid of it post 2.0.

      This can be little confusing for the users as views appear to be independent of each other.

      See http://www.couchbase.com/issues/browse/CBSE-238 for an example case.

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

        Activity

        Hide
        kzeller kzeller added a comment -

        Added to RN 2.0.1:

        <rnentry type="fix">

        <version ver="2.0.0l"/>

        <class id="index"/>

        <issue type="cb" ref="MB-6895"/>

        <rntext>

        <para>
        In past releases of Couchbase Server 2.0, if you had a map function that failed to index, other functions in the same
        design document would also fail. This has been fixed.
        </para>

        </rntext>

        </rnentry>

        Show
        kzeller kzeller added a comment - Added to RN 2.0.1: <rnentry type="fix"> <version ver="2.0.0l"/> <class id="index"/> <issue type="cb" ref=" MB-6895 "/> <rntext> <para> In past releases of Couchbase Server 2.0, if you had a map function that failed to index, other functions in the same design document would also fail. This has been fixed. </para> </rntext> </rnentry>
        Hide
        kzeller kzeller added a comment -

        Added to RN 2.0.1:

        <rnentry type="fix">

        <version ver="2.0.0l"/>

        <class id="index"/>

        <issue type="cb" ref="MB-6895"/>

        <rntext>

        <para>
        In past releases of Couchbase Server 2.0, if you had a map function that failed to index, other functions in the same
        design document would also fail. This has been fixed.
        </para>

        </rntext>

        </rnentry>

        Show
        kzeller kzeller added a comment - Added to RN 2.0.1: <rnentry type="fix"> <version ver="2.0.0l"/> <class id="index"/> <issue type="cb" ref=" MB-6895 "/> <rntext> <para> In past releases of Couchbase Server 2.0, if you had a map function that failed to index, other functions in the same design document would also fail. This has been fixed. </para> </rntext> </rnentry>
        Hide
        deepkaran.salooja Deepkaran Salooja added a comment -

        Verified with build 2.0.1-153-rel.

        Show
        deepkaran.salooja Deepkaran Salooja added a comment - Verified with build 2.0.1-153-rel.
        Hide
        dipti Dipti Borkar added a comment -

        assuming this was because dev views use stock couch. So Filipe, does your comment mean that you fixed it for 2.0.1?

        Show
        dipti Dipti Borkar added a comment - assuming this was because dev views use stock couch. So Filipe, does your comment mean that you fixed it for 2.0.1?
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in github-couchdb-preview #562 (See http://qa.hq.northscale.net/job/github-couchdb-preview/562/)
        MB-6895 Correct error processing for dev views (Revision 356ef20516464c5bd0c22dec643bd27fba618d18)

        Result = SUCCESS
        Filipe David Borba Manana :
        Files :

        • src/couchdb/couch_view_mapreduce.erl
        Show
        thuan Thuan Nguyen added a comment - Integrated in github-couchdb-preview #562 (See http://qa.hq.northscale.net/job/github-couchdb-preview/562/ ) MB-6895 Correct error processing for dev views (Revision 356ef20516464c5bd0c22dec643bd27fba618d18) Result = SUCCESS Filipe David Borba Manana : Files : src/couchdb/couch_view_mapreduce.erl

          People

          • Assignee:
            kzeller kzeller
            Reporter:
            deepkaran.salooja Deepkaran Salooja
          • Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There is 1 open Gerrit change