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

EjectionMethod does not support Ephemeral bucket ejection modes

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.7
    • 2.7.8
    • None
    • None
    • 1

    Description

      Ephemeral Buckets can have an EjectionMethod of either None or NRU.

      In the BucketSettings JSON response, this appears as: 

      "evictionPolicy": "noEviction"
      "evictionPolicy": "nruEviction"
      

      However in the Java Client we only have Full or Value available in the EjectionMethod Enum.

      When retrieving these settings using getBucket() method, they default to Value Ejection:

      Name: eph-none
           Type: EPHEMERAL
           Quota: 100
           Eject: VALUE
           Compression: PASSIVE
       
      Name: eph-nru
           Type: EPHEMERAL
           Quota: 100
           Eject: VALUE
           Compression: PASSIVE 

      Likewise, we'll need to have the methods available for the insertBucket() method.

      Attachments

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

        Activity

          There are no comments yet on this issue.

          People

            daschl Michael Nitschinger
            phil.stott Phil Stott (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty