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

Admin/User views cannot handle both xattr and non-xattr simultaneously

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.6.0
    • Component/s: SyncGateway
    • Security Level: Public
    • Labels:
      None
    • Sprint:
      CBG Sprint 16, CBG Sprint 17, CBG Sprint 18, CBG Sprint 19
    • Story Points:
      5

      Description

      Expected behavior

      Admin or user created views are able to handle both mobile docs with extended attributes or docs with mobile metadata in the body.

      Actual behavior

      Admin or user created views can only handle the document types (xattr vs body) specified in the Sync Gateway config at the time that the view was created.
      This is undesirable as it can cause situations where the result set of the views will be incomplete once the import process has begun and there's no way to get a consistent dataset.
      Even ignoring this, it means that you would have to re-deploy your view after enabling shared_bucket_access and import.

      Steps to reproduce

      1. Turn on Sync Gateway with shared_bucket_access and import disabled
      2. Add some documents to Sync Gateway
      3. Create an admin view using Sync Gateway
      4. Enable shared_bucket_access and import
      5. Begin to query your view and check the result set, notice how this is incomplete

      Migrated from https://github.com/couchbase/sync_gateway/issues/3913

        Attachments

        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-10 contains sync_gateway commit a1b3700 with commit message:
          CBG-221: Views can now handle xattr and non-xattrs simultaneously (#4027)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-10 contains sync_gateway commit a1b3700 with commit message: CBG-221 : Views can now handle xattr and non-xattrs simultaneously (#4027)
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.6.0-10 contains sync_gateway commit a1b3700 with commit message:
          CBG-221: Views can now handle xattr and non-xattrs simultaneously (#4027)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-10 contains sync_gateway commit a1b3700 with commit message: CBG-221 : Views can now handle xattr and non-xattrs simultaneously (#4027)

            People

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