Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1603

[Collections] Expose API to set the collections TTL

    XMLWordPrintable

Details

    • 1

    Description

      Expose APIs through REST/SDKs to set collection TTL value during collection creation and updating it afterwards.

      Attachments

        Issue Links

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

          Activity

            owend Daniel Owen added a comment -

            Hi Ashwin Govindarajulu,

            Should this ticket be for the sdks? and ns_server for the REST interface?
            Or is there work to be done in KV to support this.

            thanks

            owend Daniel Owen added a comment - Hi Ashwin Govindarajulu , Should this ticket be for the sdks? and ns_server for the REST interface? Or is there work to be done in KV to support this. thanks

            Daniel Owen, with reference to MB-30487, found the REST API for creating collections with maxTTL,

             

            #] curl -X POST 10.112.191.101:8091/pools/default/buckets/default/collections/_default -u Administrator:password -d name=col_1 -d maxttl=100
            {"uid":"1"}

            Also for modifying the maxTTL for existing collection, there is ticket already open - MB-31806.

            So we can close this bug.

            Thanks,

            Ashwin

             

            ashwin.govindarajulu Ashwin Govindarajulu added a comment - Daniel Owen , with reference to MB-30487 , found the REST API for creating collections with maxTTL,   #] curl -X POST 10.112.191.101:8091/pools/default/buckets/default/collections/_default -u Administrator:password -d name=col_1 -d maxttl=100 {"uid":"1"} Also for modifying the maxTTL for existing collection, there is ticket already open - MB-31806 . So we can close this bug. Thanks, Ashwin  

            As discussed with Shivani Gupta  and Brett Lawson, reassigning this ticket to SDK team for updating SDK RFCs and implementing the APIs in Java client.

            ashwin.govindarajulu Ashwin Govindarajulu added a comment - As discussed with Shivani Gupta   and Brett Lawson , reassigning this ticket to SDK team for updating SDK RFCs and implementing the APIs in Java client.
            daschl Michael Nitschinger added a comment - Implemented in the java client as per https://github.com/couchbase/couchbase-jvm-clients/commit/50f98c3c6f0f347e8f4e3f14013882648fe7f8e7

            People

              brett19 Brett Lawson
              ashwin.govindarajulu Ashwin Govindarajulu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty