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

Deleting collection using rest call is deleting scope as well

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • No

    Description

      1. create named scope and named collection.
      2. drop named collection using rest call.

      [root@node1-cb600-centos7 ~]# /opt/couchbase/bin/cbstats 10.112.190.101:11210 -u Administrator -p password -b test_bucket collections
       0x0:0x0:disk_size:  0
       0x0:0x0:items:      0
       0x0:0x0:mem_used:   0
       0x0:0x0:name:       _default
       0x0:0x0:ops_delete: 0
       0x0:0x0:ops_get:    0
       0x0:0x0:ops_store:  0
       0x0:0x0:scope_name: _default
       0x8:0x8:disk_size:  524311
       0x8:0x8:items:      1000
       0x8:0x8:mem_used:   601010
       0x8:0x8:name:       test_collection_1
       0x8:0x8:ops_delete: 0
       0x8:0x8:ops_get:    1000
       0x8:0x8:ops_store:  1000
       0x8:0x8:scope_name: test_scope_1
       manifest_uid:       2
      [root@node1-cb600-centos7 ~]# curl -u Administrator:password -i -X DELETE http://10.112.190.101:8091/pools/default/buckets/test_bucket/collections/test_scope_1/test_collection_1
      HTTP/1.1 200 OK
      Cache-Control: no-cache,no-store,must-revalidate
      Content-Length: 11
      Content-Type: application/json
      Date: Fri, 10 Jul 2020 05:25:35 GMT
      Expires: Thu, 01 Jan 1970 00:00:00 GMT
      Pragma: no-cache
      Server: Couchbase Server
      X-Content-Type-Options: nosniff
      X-Frame-Options: DENY
      X-Permitted-Cross-Domain-Policies: none
      X-XSS-Protection: 1; mode=block
       
       
      {"uid":"3"}[root@node1-cb600-c/opt/couchbase/bin/cbstats 10.112.190.101:11210 -u Administrator -p password -b test_bucket collectionsollection_1
       0x0:0x0:disk_size:  0
       0x0:0x0:items:      0
       0x0:0x0:mem_used:   0
       0x0:0x0:name:       _default
       0x0:0x0:ops_delete: 0
       0x0:0x0:ops_get:    0
       0x0:0x0:ops_store:  0
       0x0:0x0:scope_name: _default
       manifest_uid:       3
      [root@node1-cb600-centos7 ~]# 
      

      Attachments

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

        Activity

          People

            dfinlay Dave Finlay
            hemant.rajput Hemant Rajput
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty