Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-150

"Failed to access the view" error when querying a view with reduce

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • None
    • 1.1-dp4
    • Core
    • Security Level: Public
    • None

    Description

      Attempting to make a call to CouchbaseClient.query(view, query) with a view that has a reduce (even just "_count") results in the following exception when results are returned:

      java.lang.RuntimeException: Failed to access the view
      at com.couchbase.client.CouchbaseClient.query(CouchbaseClient.java:634)

      Worth noting:

      • If the query returns no results (ViewResponse.size() returns 0), you do not get the exception...
      • If the reduce method is removed from the view, everything works fine. However, using query.setReduce(false) does not work.

      Attachments

        For Gerrit Dashboard: JCBC-150
        # Subject Branch Project Status CR V

        Activity

          People

            daschl Michael Nitschinger
            ctash_jt Chris Tashjian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty