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

Differentiate between Delete vs Expiry in OnDelete()

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.5.0, 6.0.4, 6.5.1
    • 7.0.0
    • eventing
    • None

    Description

      Due to MB-26907, the only way by which a user can create a system that alerts them on a document's expiry is by creating a timer at the expiration time(meta.expiration) or before that. 

      Why we need an OnExpiry Handler:

      • This mechanism (using Timers) is not elegant and we should it make it easy for the user to consume Expiry events.
      • Timers impose a overhead of managing it using local storage(plasma or buckets) there by affecting sizing guidelines. 
      • Timer's execution is not guaranteed at the specified time if the load on the system is high & the eventing nodes are under provisioned.

      This is a tracking bug to implement an OnExpiry handler once MB-26907 implements a system by which DCP consumers can differentiate between Delete and Expiry.

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-29090
          # Subject Branch Project Status CR V

          Activity

            Build couchbase-server-7.0.0-1830 contains eventing commit f296ddc with commit message:
            MB-29090: Differentiate between deleted and expired documents for OnDelete functions

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-1830 contains eventing commit f296ddc with commit message: MB-29090 : Differentiate between deleted and expired documents for OnDelete functions

            Build couchbase-server-7.0.0-1830 contains eventing commit 99738f2 with commit message:
            MB-29090: Document OnExpiry handler

            build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-1830 contains eventing commit 99738f2 with commit message: MB-29090 : Document OnExpiry handler

            verified and automated

            vikas.chaudhary Vikas Chaudhary added a comment - verified and automated

            People

              ankit.prabhu Ankit Prabhu
              venkatraman.subramanian Venkatraman Subramanian (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty