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

fix target bucket deletion for paused replications

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Spock.Next, 5.5.0
    • 4.6.2, 5.0.0
    • XDCR
    • None
    • Triaged
    • Unknown

    Description

      We used to check source and target bucket deletion in repl_spec_service. In ---MB-22514--- reduce number of connections to target, the target bucket deletion check was combined with target bucket check in topology change detector with the aim to reduce the number of connections to target. This change is problematic, though, since the check in repl_spec_service is done for both running and paused replications, while the check in topology change detector is for running replication only. Consequently, target bucket check is no longer done for paused replications.

      One option considered is the following:

      1. for paused replications, check for source/target bucket deletion in repl_spec_service
      2. for running replications, check for source/target bucket deletion in topology change detector

      2 turned out to be not sufficient. When source bucket is deleted, running replication often gets shut down immediately before its topology change detector gets the chance to delete repl spec. It would fail to start and its topology change detector never gets the chance to delete repl spec. The same is less likely but still possible for target bucket deletion. so we need to do the check in repl_spec_service for running replications as well.

      The current plan is:

      1. check for source/target bucket deletion in repl_spec_service with a longer interval, e.g., once every 20 second
      2. check for source/target bucket deletion in topology change detector, which runs in a shorter interval, defaulted to be once every 10 seconds.

      This way, both running and paused replications can catch bucket deletion event using 1, and running replication has a chance to catch bucket deletion event sooner using 2.

      Attachments

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

        Activity

          People

            neil.huang Neil Huang
            yu Yu Sui (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty