Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-3539

Sync Gateway & Eventing

    XMLWordPrintable

Details

    • 1

    Description

      As discussed in MB-25562 and seen in MB-29360, when Sync Gateway is deployed against a bucket, a single document update can be seen over DCP as multiple mutations, some modifying body and others modifying XATTRs. Eventing will invoke OnUpdate for each such mutation as it is not possible to distinguish at DCP level if a update modified body of the document, XATTRs or both. So when both Eventing and Sync Gateway are deployed agains the same bucket, Eventing code written must be idempotent (i.e., behave correctly when same mutation is seen more than once). We should document this prominently as it is not an uncommon situation. We will use MB-29360 to track an eventual resolution to the issue which may require changes to both SG and Eventing, and possibly SDKs.

      Attachments

        Issue Links

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

          Activity

            People

              amarantha.kulkarni Amarantha Kulkarni (Inactive)
              siri Sriram Melkote (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty