[MB-7474] Add new parameter to couchbase-cli bucket-create/bucket-edit commands to enable/disable flush Created: 29/Dec/12  Updated: 31/Jan/13  Resolved: 18/Jan/13

Status: Resolved
Project: Couchbase Server
Component/s: tools
Affects Version/s: 2.0
Fix Version/s: None
Security Level: Public

Type: Improvement Priority: Minor
Reporter: Tug Grall (Inactive) Assignee: Bin Cui
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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)


Comment by Dipti Borkar [ 31/Dec/12 ]
Is the REST api not sufficient?


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
Comment by Tug Grall (Inactive) [ 02/Jan/13 ]
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)

Comment by Bin Cui [ 18/Jan/13 ]
See bug MB-7235
Generated at Wed Nov 26 10:52:49 CST 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.