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

Bad JSON response for queries with ?on_error=stop and when errors exist

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: view-engine
    • Security Level: Public
    • Labels:
      None

      Description

      Under certain circumstances, when using ?on_error=stop and errors happened during query execution, the server now returns invalid JSON response. Examples:

      ],"errors":[

      {"from":"http://192.168.1.80:9501/_view_merge/?reduce=false&stale=false&on_error=stop&limit=10","reason":"timeout"}

      ]
      }

      {"total_rows":0,"rows":[]
      {"total_rows":0,"rows":[]
      ,
      "errors":[

      {"from":"http://192.168.1.80:9501/_view_merge/?reduce=false&stale=false&on_error=stop&limit=10","reason":"timeout"}

      ]
      }

      This is due to a missing change in commit b4391e4e27319c504b74260df102a19ac090c81e (MB-6988).

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

        Activity

        Show
        FilipeManana Filipe Manana (Inactive) added a comment - http://review.couchbase.org/#/c/23012/ http://review.couchbase.org/#/c/23011/ (testrunner)
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        per bug scrub.

        great find. moving this to 2.0.1

        Show
        farshid Farshid Ghods (Inactive) added a comment - per bug scrub. great find. moving this to 2.0.1
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in github-couchdb-preview #541 (See http://qa.hq.northscale.net/job/github-couchdb-preview/541/)
        MB-7338 Fix bad JSON responses for queries with ?on_error=stop (Revision b53acd96911681a4c0cc835b688424495e365284)

        Result = SUCCESS
        Filipe David Borba Manana :
        Files :

        • src/couch_index_merger/src/couch_httpd_view_merger.erl
        Show
        thuan Thuan Nguyen added a comment - Integrated in github-couchdb-preview #541 (See http://qa.hq.northscale.net/job/github-couchdb-preview/541/ ) MB-7338 Fix bad JSON responses for queries with ?on_error=stop (Revision b53acd96911681a4c0cc835b688424495e365284) Result = SUCCESS Filipe David Borba Manana : Files : src/couch_index_merger/src/couch_httpd_view_merger.erl

          People

          • Assignee:
            FilipeManana Filipe Manana (Inactive)
            Reporter:
            FilipeManana Filipe Manana (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