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

[Bucket Durability]:cbepctl and Bucket create REST API 'durability_min_level' parameters should be the same.

    XMLWordPrintable

Details

    • 1

    Description

       

      Build: 7687

      In the current implementation of bucket_durability settings we use string ('none', 'majority', 'majorityAndPersistActive', 'persistToMajority') while creating a bucket.

      And for updating bucket-durability settings from cbepctl, we have to use different string for "durability_min_level" flush_param ('none', 'majority', 'majority_and_persist_on_master', 'persist_to_majority')

      Would be better if cbepctl also uses the same string used by bucket-create command

       

      Attachments

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

        Activity

          cbepctl is owned by KV-Team, adding couchbase-bucket as a component.

          Daniel Owen You might be interested in this one

          pvarley Patrick Varley added a comment - cbepctl is owned by KV-Team, adding couchbase-bucket as a component. Daniel Owen You might be interested in this one

          Updated the title as it's the underlying REST API and not directly couchbase-cli.

          pvarley Patrick Varley added a comment - Updated the title as it's the underlying REST API and not directly couchbase-cli.

          The naming differences came up when I was implementing this and I was advised to use what was in the public docs: https://docs.couchbase.com/server/6.5/learn/data/durability.html

          The durability requirements specified by a client are:
           
          Level. The level of durability required. The possible values are:
           
          majority. The mutation must be replicated to (that is, held in the memory allocated to the bucket on) a majority of the Data Service nodes.
           
          majorityAndPersistActive. The mutation must be replicated to a majority of the Data Service nodes. Additionally, it must be persisted (that is, written and synchronised to disk) on the node hosting the active vBucket for the data.
           
          persistToMajority. The mutation must be persisted to a majority of the Data Service nodes. Accordingly, it will be written to disk on those nodes.
          

          Assigning this ticket to KV to determine what to do with cbepctl.

          steve.watanabe Steve Watanabe added a comment - The naming differences came up when I was implementing this and I was advised to use what was in the public docs: https://docs.couchbase.com/server/6.5/learn/data/durability.html The durability requirements specified by a client are:   Level. The level of durability required. The possible values are:   majority. The mutation must be replicated to (that is, held in the memory allocated to the bucket on) a majority of the Data Service nodes.   majorityAndPersistActive. The mutation must be replicated to a majority of the Data Service nodes. Additionally, it must be persisted (that is, written and synchronised to disk) on the node hosting the active vBucket for the data.   persistToMajority. The mutation must be persisted to a majority of the Data Service nodes. Accordingly, it will be written to disk on those nodes. Assigning this ticket to KV to determine what to do with cbepctl.

          Closing the ticket.

          ashwin.govindarajulu Ashwin Govindarajulu added a comment - Closing the ticket.

          People

            ashwin.govindarajulu Ashwin Govindarajulu
            ashwin.govindarajulu Ashwin Govindarajulu
            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