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

[Durability-Cb_cli]: Bucket creation should fail for ephemeral bucket type with min_durabilility_levels 'persistToMajority' & 'majorityAndPersistActive'

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not a Bug
    • 6.6.0
    • 6.6.0
    • ns_server
    • 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

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

          Activity

            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.

            steve.watanabe Steve Watanabe added a comment - 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.

            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.

            Steve Watanabe Generally that is what we try to do, some times we break that "rule" if it makes for a better user experience.

            With the ns_server side in progression and the output from Steve's WIP covers this I'm going to mark this defect as closed.

            pvarley Patrick Varley added a comment - 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. Steve Watanabe Generally that is what we try to do, some times we break that "rule" if it makes for a better user experience. With the ns_server side in progression and the output from Steve's WIP covers this I'm going to mark this defect as closed.

            People

              steve.watanabe Steve Watanabe
              ashwin.govindarajulu Ashwin Govindarajulu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty