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

SUBDOC operation attempted when server doesn't support them

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: SyncGateway
    • Security Level: Public
    • Labels:
      None
    • Sprint:
      CBG Sprint 18
    • Story Points:
      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

            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-2.6.0-2 contains sync_gateway commit 4b5573e with commit message:
            CBG-286: Xattr only on supported CB (#4036)

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-2 contains sync_gateway commit 4b5573e with commit message: CBG-286 : Xattr only on supported CB (#4036)
            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-2.6.0-2 contains sync_gateway commit 4b5573e with commit message:
            CBG-286: Xattr only on supported CB (#4036)

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-2 contains sync_gateway commit 4b5573e with commit message: CBG-286 : Xattr only on supported CB (#4036)
            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-2.5.1-4 contains sync_gateway commit 766a909 with commit message:
            CBG-318: CBG-286 backport - Xattr only on supported CB (#4079)

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-2.5.1-4 contains sync_gateway commit 766a909 with commit message: CBG-318 : CBG-286 backport - Xattr only on supported CB (#4079)
            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-2.5.1-4 contains sync_gateway commit 766a909 with commit message:
            CBG-318: CBG-286 backport - Xattr only on supported CB (#4079)

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-2.5.1-4 contains sync_gateway commit 766a909 with commit message: CBG-318 : CBG-286 backport - Xattr only on supported CB (#4079)
            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-2.5.1-4 contains sync_gateway commit 766a909 with commit message:
            CBG-318: CBG-286 backport - Xattr only on supported CB (#4079)

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-2.5.1-4 contains sync_gateway commit 766a909 with commit message: CBG-318 : CBG-286 backport - Xattr only on supported CB (#4079)
            Hide
            build-team Couchbase Build Team added a comment -

            Build sync_gateway-2.6.0-13 contains sync_gateway commit 0501fff with commit message:
            CBG-286: Nil check fix (#4078)

            Show
            build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-13 contains sync_gateway commit 0501fff with commit message: CBG-286 : Nil check fix (#4078)

              People

              • Assignee:
                jacques.rascagneres Jacques Rascagneres
                Reporter:
                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

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.