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

maxTTL for collection needs option to set "no expiry"

    XMLWordPrintable

Details

    • 0

    Description

      Currently the behavior in 7.2 and earlier is,

      Bucket maxTTL value What the value represents
      0(default) No expiry. Documents do not expire
      Any positive integer Number of seconds document documents will live
      Collection maxTTL value What the value represents
      0(default) Use bucket's maxTTL value
      Any positive integer Number of seconds document documents will live

      This doesn't allow for setting no-expiry on a collection. It was decided to accept a new value of "-1" for maxTTL which would mean that we disable expiry for that collection.

      Changes need to made to,
      POST pools/default/buckets/bucketName/scopes/scopeName/collections
      PATCH pools/default/buckets/bucketName/scopes/scopeName/collections/collectionName
      PUT pools/default/buckets/bucketName/scopes

      The new value for -1 will be reflected in the GET API, pools/default/buckets/bucketName/scopes

      Attachments

        Issue Links

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

          Activity

            People

              vibhav.sp Vibhav S P
              Abhijeeth.Nuthan Abhijeeth Nuthan
              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