Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-22953

Xattrs are not replicated with XDCR?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 5.0.0
    • 5.0.0
    • couchbase-bucket, XDCR
    • None
    • 5.0.0-2012
    • Untriaged
    • Unknown

    Description

      In my tests I add xattrs on src cluster and then verify them on dest. As I see on dest cluster xattrs are not replicated. Do we need any special settings for XDCR or it's still not implemented?

      code looks like

                              for _, cluster in enumerate(self.get_cb_clusters()):
                                  for bucket in cluster.get_buckets():
                                      self.client = SDKClient(scheme="couchbase", hosts=[cluster.get_master_node().ip],
                                                                  bucket=bucket.name).cb
                                      for i in xrange(self._num_items):
                                          key = 'k_%s' % i
                                          res = self.client.get(key)  # body of the doc is json with xattr in my case
                                          for xk, xv in res.value.iteritems():
                                              rv = self.client.mutate_in(key, SD.get(xk, xattr=True))
                                              self.assertTrue(rv.exists(xk))
                                              self.assertEqual(xv, rv[xk])
      
      

      http://review.couchbase.org/#/c/72414/7/pytests/xdcr/xdcr_xattr_sdk.py

      Attachments

        Issue Links

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

          Activity

            People

              dhaikney David Haikney (Inactive)
              andreibaranouski Andrei Baranouski
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty