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

Add new parameter to couchbase-cli bucket-create/bucket-edit commands to enable/disable flush

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: tools
    • Security Level: Public
    • Labels:
      None

      Description

      It will be useful for admin to allow them to enable or not flush when creating/editing a bucket using couchbase-cli bucket-create/bucket-edit commands

      We should add the following parameter to the command:
      enable-flush=true/false (default=false)

      see:
      http://www.couchbase.com/forums/thread/couchbase-cli-bucket-create-possible-specify-flush-attribute

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

        Activity

        tgrall Tug Grall (Inactive) created issue -
        Hide
        dipti Dipti Borkar added a comment -

        Is the REST api not sufficient?

        http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-restapi-creating-buckets.html

        flushEnabled Enable the 'flush all' functionality on the specified bucket.
        Parameters boolean; optional
        Value Range 0 - 1; Default: 0
        Supported Values
        0 Disable flush all support
        1 Enable flush all support

        Show
        dipti Dipti Borkar added a comment - Is the REST api not sufficient? http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-admin-restapi-creating-buckets.html flushEnabled Enable the 'flush all' functionality on the specified bucket. Parameters boolean; optional Value Range 0 - 1; Default: 0 Supported Values 0 Disable flush all support 1 Enable flush all support
        Hide
        tgrall Tug Grall (Inactive) added a comment -

        I know about the REST API.
        The fact is when you provide another interface to a "service", in this case the CLI we should try to match all the parameter (at least the important one)
        So for me it is not sufficient.

        If we look it from the user perspective (forum) the new parameter is probably more important.
        The requirement comes from the fact that in previous release when creating a new bucket from the CLI is was flush-enabled by default. So with the new version it is not possible anymore to have the same behavior. (not asking to change the default, just asking to add a new parameter)

        Show
        tgrall Tug Grall (Inactive) added a comment - I know about the REST API. The fact is when you provide another interface to a "service", in this case the CLI we should try to match all the parameter (at least the important one) So for me it is not sufficient. If we look it from the user perspective (forum) the new parameter is probably more important. The requirement comes from the fact that in previous release when creating a new bucket from the CLI is was flush-enabled by default. So with the new version it is not possible anymore to have the same behavior. (not asking to change the default, just asking to add a new parameter)
        steve Steve Yen made changes -
        Field Original Value New Value
        Assignee Steve Yen [ steve ] Bin Cui [ bcui ]
        Hide
        bcui Bin Cui (Inactive) added a comment -

        See bug MB-7235

        Show
        bcui Bin Cui (Inactive) added a comment - See bug MB-7235
        bcui Bin Cui (Inactive) made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]
        steve Steve Yen made changes -
        Sprint Status Current Sprint
        mikew Mike Wiederhold made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            bcui Bin Cui (Inactive)
            Reporter:
            tgrall Tug Grall (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes