Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-286

SUBDOC operation attempted when server doesn't support them

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 2.6.0
    • None
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 18
    • 3

    Description

      When processing a document that has been seen over DCP we check whether a document has a sync data xattr, even when running in non-xattr mode. This allows an upgrade to shared bucket access with no down-time.
      However, this check is even performed when the target server doesn't support SUBDOC operations. This is an issue when using Couchbase Server 4.x as this doesn't support SUBDOC operations. Therefore when this is attempted an error occurs and the connection that the operation was performed on closes.
      If there are any other operations waiting on that connection they get a 500 error and this is seen in Sync Gateway as a network error.
      With this in mind we should check the server version before attempting to perform a SUBDOC operation: https://github.com/couchbase/sync_gateway/blob/master/db/crud.go#L1664

      Attachments

        Issue Links

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

          Activity

            People

              jacques.rascagneres Jacques Rascagneres
              jacques.rascagneres Jacques Rascagneres
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty