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

Multiple DCP_MUTATIONs observed for single doc update when using Sync Gateway

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Reopened
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 5.5.0
    • Fix Version/s: Mad-Hatter
    • Component/s: eventing
    • Labels:
    • Environment:
      Linux

      Description

      For a single doc update, we are observing multiple DCP_MUTATIONs. This leads to the OnUpdate handler in Eventing being triggered multiple times.

        Attachments

        1. eventing.docx
          13 kB
        2. events.js
          2 kB
        3. events.js
          2 kB
        4. test_function.log
          30 kB

          Issue Links

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

            Activity

            Hide
            venkatraman.subramanian Venkatraman Subramanian added a comment -

            Agreed - this should remain open to track. Also, refer to MB-28108 that was logged to track this behaviour. 

            Essentially, Eventing should be able to filter by Source as well, so that developer can control which mutations to process.

            Show
            venkatraman.subramanian Venkatraman Subramanian added a comment - Agreed - this should remain open to track. Also, refer to  MB-28108  that was logged to track this behaviour.  Essentially, Eventing should be able to filter by Source as well, so that developer can control which mutations to process.
            Hide
            karthik.vijayraghavan Karthik Vijayraghavan added a comment -

            Is there a workaround in the interim to avoid multiple mutations apart from shutting down SG?

            Show
            karthik.vijayraghavan Karthik Vijayraghavan added a comment - Is there a workaround in the interim to avoid multiple mutations apart from shutting down SG?
            Hide
            mihir.kamdar Mihir Kamdar added a comment -

            Venkatraman Subramanian Why is this bug made a blocker ?

            Show
            mihir.kamdar Mihir Kamdar added a comment - Venkatraman Subramanian Why is this bug made a blocker ?
            Hide
            venkatraman.subramanian Venkatraman Subramanian added a comment -

            The Top bugs/improvements are often assigned as Blocker. There are 3 others as well.

            Show
            venkatraman.subramanian Venkatraman Subramanian added a comment - The Top bugs/improvements are often assigned as Blocker. There are 3 others as well.
            Hide
            siri Sriram Melkote added a comment - - edited

            After several iterations of discussions, where we concluded that changes needed to support this in KV are too hard to implement for the exposure this feature brings, and so we are limited to using current capabilities. Within this, the only reliable way to ensure this is to store CRC of seen mutations in another bucket. As this is expensive, we have decided to make crc() available as a function, so customers who need this capability are enabled to do so themselves.

            Show
            siri Sriram Melkote added a comment - - edited After several iterations of discussions, where we concluded that changes needed to support this in KV are too hard to implement for the exposure this feature brings, and so we are limited to using current capabilities. Within this, the only reliable way to ensure this is to store CRC of seen mutations in another bucket. As this is expensive, we have decided to make crc() available as a function, so customers who need this capability are enabled to do so themselves.

              People

              • Assignee:
                siri Sriram Melkote
                Reporter:
                karthik.vijayraghavan Karthik Vijayraghavan
              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.