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

Compressed binary documents with xattrs are not replicated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.0
    • 6.6.2
    • XDCR
    • Security Level: Public
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      When uncompress data for filtering, XDCR assumes document is JSON:
      https://github.com/couchbase/goxdcr/blob/mad-hatter/utils/utils.go#L2826
      It will return error if the last byte of the document is not '}'.

      This affect the replication in two ways:

      • If replication has filter, needToReplication will be false for compressed binary document so it will not be replicated.
      • If replication has no filter, this code is used to filter transaction data. Because of the error, the data is not replicated.

      In both cases, the data is not replicated. This only affects compressed binary data that contains xattrs.

      Attachments

        Issue Links

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

          Activity

            People

              pavithra.mahamani Pavithra Mahamani (Inactive)
              lilei.chen Lilei Chen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty