Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-1022

ViewQuery multi bucket connection issue

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 2.2.0
    • None
    • None
    • 1

    Description

      This has been a tough one to hunt down and figure out but the situation we are having is that we have multiple buckets and one of the buckets has a view design document on it. We've come to the conclusion that if you have a single cluster connection with multiple buckets you may have problems running ViewQuery or even UpsertDesignDocument.

       

      Step to recreate

      Create bucket A

      Create bucket B

      Add View to bucket

      Run View query against bucket A

      Attachments

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

        Activity

          The issue here is that in our connection manager we are routing view queries to the "agent group" provider. This means that they go the gocbcore "cluster agent" which is not designed to handle or route bucket level operations. The fix is going to be quite simple - change the connection manager to get the agent which is bound against the bucket instead of the agent group.

          charles.dixon Charles Dixon added a comment - The issue here is that in our connection manager we are routing view queries to the "agent group" provider. This means that they go the gocbcore "cluster agent" which is not designed to handle or route bucket level operations. The fix is going to be quite simple - change the connection manager to get the agent which is bound against the bucket instead of the agent group.

          Can you give me an example usage? I dont fully understand how to implement what your describing.

          bvoelker Brian Voelker added a comment - Can you give me an example usage? I dont fully understand how to implement what your describing.

          This requires a fix on the gocb side, in the gerrit review linked to this ticket (http://review.couchbase.org/c/gocb/+/141443) you can see the fix. This will be part of the 2.2 release this month.

          charles.dixon Charles Dixon added a comment - This requires a fix on the gocb side, in the gerrit review linked to this ticket ( http://review.couchbase.org/c/gocb/+/141443) you can see the fix. This will be part of the 2.2 release this month.

          Build sync_gateway-3.0.0-96 contains gocb commit 9b54ac3 with commit message:
          GOCBC-1022: Route view queries to agents not agent group

          build-team Couchbase Build Team added a comment - Build sync_gateway-3.0.0-96 contains gocb commit 9b54ac3 with commit message: GOCBC-1022 : Route view queries to agents not agent group

          Build couchbase-server-7.0.0-4715 contains gocb commit 9b54ac3 with commit message:
          GOCBC-1022: Route view queries to agents not agent group

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-4715 contains gocb commit 9b54ac3 with commit message: GOCBC-1022 : Route view queries to agents not agent group

          Build couchbase-server-7.1.0-1767 contains gocb commit 9b54ac3 with commit message:
          GOCBC-1022: Route view queries to agents not agent group

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.1.0-1767 contains gocb commit 9b54ac3 with commit message: GOCBC-1022 : Route view queries to agents not agent group

          People

            charles.dixon Charles Dixon
            bvoelker Brian Voelker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty