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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.1
    • 2.0
    • view-engine
    • Security Level: Public
    • 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).

      Attachments

        For Gerrit Dashboard: MB-7338
        # Subject Branch Project Status CR V

        Activity

          People

            FilipeManana Filipe Manana (Inactive)
            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

                PagerDuty