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

Collections: wrong information about scope state

    XMLWordPrintable

Details

    Description

      Trying to do the following steps:

      1. Create bucket: bucket1
      2. Create scope: bucket1.scope1 - running a query 

        create scope default:bucket1.scope1 

      1. Check if scope created: running a request: 

        http://192.168.10.11:8091/pools/default/buckets/bucket1/collections

        which returns me this: 

        b'{"uid":"1","scopes":[{"name":"scope1","uid":"8","collections":[]},{"name":"_default","uid":"0","collections":[{"name":"_default","uid":"0"}]}]}'

      1. create collection: bucket1.scope1.collection1 - running a query create

        collection default:bucket1.scope1.collection1

        And this query fails with exception: 

        {'requestID': 'daa850f9-c1fe-431b-b9e8-2061a3581659', 'errors': [{'code': 12021, 'msg': 'Scope not found in CB datastore default:bucket1.scope1'}], 'status': 'fatal', 'metrics': {'elapsedTime': '2.750487ms', 'executionTime': '2.659576ms', 'resultCount': 0, 'resultSize': 0, 'errorCount': 1}}

      Attachments

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

        Activity

          People

            marco.greco Marco Greco (Inactive)
            evgeny.makarenko Evgeny Makarenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty