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

autoCompactionSettings for bucket is sometimes a boolean, sometimes a Map

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 7.1.0
    • None
    • RESTful-APIs
    • None
    • Untriaged
    • 1
    • Unknown

    Description

        The response for autoCompactionSettings can either be :  “autoCompactionSettings”:{“magmaFragmentationPercentage”:70} or  “autoCompactionSettings”:false.  Which makes the parsing fail.curl -u Administrator:password -X POST http://10.144.220.101:8091/pools/default/buckets  -d ‘name=new_bucket’ -d ‘ramQuotaMB=256’ -d ‘storageBackend=magma’ -d ‘magmaFragmentationPercentage=70’ -d ‘autoCompactionDefined=true’
      curl -u Administrator:password -X GET http://10.144.220.101:8091/pools/default/buckets

      … “autoCompactionSettings”:{“magmaFragmentationPercentage”:70} …

      curl -u Administrator:password -X DELETE http://10.144.210.101:8091/pools/default/buckets/new_bucket
      curl -u Administrator:password -X POST http://10.144.220.101:8091/pools/default/buckets  -d ‘name=new_bucket’ -d ‘ramQuotaMB=256’ -d ‘storageBackend=magma’ 
      curl -u Administrator:password -X GET http://10.144.220.101:8091/pools/default/buckets

      … “autoCompactionSettings”:false, …

      Attachments

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

        Activity

          People

            steve.watanabe Steve Watanabe
            michael.reiche Michael Reiche
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty