Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-2784

Getting a collection right after creating it throws CollectionNotFoundException

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.2
    • library
    • Windows 10, Couchbase Beta 7 release, .NET Client 3.1.0 via NuGet
    • 1
    • SDK6: Tracing+OT

    Description

      Summary: Creating a collection then immediately accessing it throws exception

      Repro:

      1. Create a bucket.
      2. Create a collection in that bucket (with _default scope) called MyCollection
      3. Get that collection with intent to insert data into it.

      Expected:

      Collection("MyCollection") to succeed.

      Actual:

      Unhandled exception. Couchbase.Core.Exceptions.CollectionNotFoundException: Cannot find collection MyCollection
      {{ at Couchbase.KeyValue.Scope.get_Item(String name)}}
      {{ at Couchbase.Core.BucketBase.Collection(String collectionName)}}
      {{ at ForumQuestions.Program.Main(String[] args) in c:\zproj\ForumQuestions\ForumQuestions\Program.cs:line 44}}
      {{ at ForumQuestions.Program.<Main>(String[] args)}}

      Expected:

      See attached logs, source code repro. The collection does get created (see screenshot).

       

      Attachments

        1. collection does exist.png
          collection does exist.png
          16 kB
        2. console-example.log
          9 kB
        3. console-example-internal.log
          1 kB
        4. Program.cs
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          jmorris Jeff Morris added a comment -

          This is a valid issue - the SDK uses a stale version of the manifest.

          jmorris Jeff Morris added a comment - This is a valid issue - the SDK uses a stale version of the manifest.

          People

            jmorris Jeff Morris
            matthew.groves Matthew Groves
            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