Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-834

[Collections] Doc creates under custom collection throws 'CollectionNotFoundException', but created in the server

    XMLWordPrintable

Details

    • 1

    Description

      Server: 7.0.0-1318

      SDK: compile group: 'com.couchbase.client', name: 'couchbase-transactions', version: '1.0.0-SNAPSHOT'

      Scenario:

      1. Single node cluster, Couchbase bucket
      2. Created scope 'gh1AxX8mHq12vMRVxt'
      3. Created collection 'tb9kzKD' under scope 'gh1AxX8mHq12vMRVxt'
      4. Load 100 documents using batch_insert operations from parallel clients

      Observation:

      Client returns `CollectionNotFoundException` for all ops, but the document is uploaded into the server successfully (Verified through UI and cbstats also says doc_count=100)

      test_docs-00000096 -> com.couchbase.client.core.error.CollectionNotFoundException: Collection [tb9kzKD] not found

      Cbstats output for created scope/collection with collection doc_count:

      # ./cbstats localhost:11210 -u Administrator -p password scopes
       manifest:scopes:                 2
       manifest:scopes:0x0:collections: 1
       manifest:scopes:0x0:name:        _default
       manifest:scopes:0x8:collections: 1
       manifest:scopes:0x8:name:        gh1AxX8mHq12vMRVxt
       manifest:uid:                    2
       
      # ./cbstats localhost:11210 -u Administrator -p password collections
       collection:0x0:items:         100
       collection:0x8:items:         0
       manifest:collection:0x0:name: _default
       manifest:collection:0x8:name: tb9kzKD
       manifest:collections:         2
       manifest:default_exists:      true
       manifest:uid:                 2

      TAF Testcase:

      epengine.basic_ops.basic_ops:
          test_doc_size,nodes_init=1,num_items=100,doc_size=256,replicas=0,doc_op=update,doc_type=json,scope=random,collection=True
      

      Note: Reproducibility is not 100%. Some times this goes through without any issues as well.

      Attachments

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

        Activity

          People

            daschl Michael Nitschinger
            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