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

Document expected behavior when using --replace-ttl/--replace-ttl-with when not using --force-updates

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Neo
    • 6.5.1, 6.5.0, 6.6.0, 6.6.1, Cheshire-Cat
    • tools
    • None
    • 1

    Description

      What's happening?
      When using the --replace-ttl/--replace-ttl-with and restoring a backup containing documents which have expired on the target cluster, 'cbbackupmgr' will report that these documents have been skipped.

      Is this the expected behavior?
      Yes, because during a restore we use seqno/lww conflict resolution which will detect that the cluster already contains this document (or a later version) and will therefore return a 'AlreadyExits' error.

      Steps to reproduce?
      1) Create a bucket
      2) Load 'n' documents which have a short ttl
      3) Perform a backup of the bucket
      4) Wait for the documents to expire
      5a) Restore the backup to a new cluster (documents should be created)
      5b) Restore the backup to a new bucket (documents should be created)
      5c) Restore the backup to the same cluster/bucket (documents should be skipped)
      5d) Restore the backup to the same cluster/bucket where the purge seqno has advanced to a point where the document tombstones have been purged (documents should be created)
      5e) Restore the backup to the same cluster/bucket whilst using --force-updates (documents should be updated with the new ttl)

      What's the issue?
      This is a bit of an edge case and the behavior is not exactly immediately obvious so we should extend the documentation to state that this is the expected behavior (perhaps we should also explain why).

      Attachments

        For Gerrit Dashboard: DOC-8544
        # Subject Branch Project Status CR V

        Activity

          People

            joe.mitchelljones Joe Mitchell Jones
            joe.mitchelljones Joe Mitchell Jones
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty