Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not a Bug
-
6.6.0
-
6.6.0-7601-enterprise
-
Triaged
-
Centos 64-bit
-
1
-
No
Description
Build: 6.6.0-7601
Bucket creation should fail for Ephemeral bucket with 'min_durability_level' parameters 'persistToMajority' and 'majorityAndPersistActive' since the regular sync_writes with these durability_levels will result in DurabilityLevelNotAvailableException from client side.
Attachments
Issue Links
- is caused by
-
MB-38573 CLI Support for Bucket Level Durability Setting
-
- Closed
-
There is a trade-off of where to do the checking. In this case it is done by the handling of the REST Api (or will be when the ns_server portion of the bucket min durability level changes are merged):
stevewatanabe @ ~/madhatter/install/bin $ ./couchbase-cli bucket-create --bucket ephBucket --bucket-type ephemeral --bucket-ramsize 100 --durability-min-level persistToMajority -c localhost:9000 -u Administrator -p asdasd
ERROR: durability_min_level - Durability minimum level must be either 'none' or 'majority' for ephemeral buckets
Architecturally it's better to do these checks as much as reasonably possible on the server side. The REST client should do minimal checking. I'd like to get Patrick Varley's thoughts on this.