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

[3.1.2 Backport] Revision Cache, Replications with purge_on_removal and meta.xattrs for channel assignment not purging/syncing consistently

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1.2
    • 3.0.5
    • SyncGateway
    • Security Level: Public
    • None
    • CBG Sprint 136
    • 1

    Description

      I think I am seeing a bug with utilizing some new features in the SGW 3.0.X for replications and the revision cache
      xattrs is being leveraged and used for channel assignment
      purge_on_removal is enabled on our replication
      Replication is being filtered via access grants for the user
      What I'm seeing is if we do the following actions we get inconsistent purging and replication of the documents from the Shore (Remote) to the Ship (Local - running a PULL replication). We were using the default values for the cache.rev_cache.size = 5000
      Grant the replication user access to ChannelA via Admin Interface  (the only channel the user has access to)
      Tag 500 document with ChannelA  by populating the meta.xattrs.userChannels
      Confirm count for Shore and Ship match - everything is working
      Update  all 500 documents to remove them from ChannelA
      An inconsistent number of documents get removed (e.g Ship goes from 500 -> 275 or something like that)
      Update the documents to be back in ChannelA - doesn't always fully replicate the documents back to the ship (e.g 275 -> 489)
      If we are to disable the cache.rev_cache  by setting size = 0  the above steps will consistently purge and replicate the documents. We have not seen any issue like this if we are to remove channel access from the user and re-granting of channels.

      Attachments

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

        Activity

          People

            tor.colvin Tor Colvin
            lee.yarbrough Lee Yarbrough
            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