Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.1.0
-
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:
- Create a bucket.
- Create a collection in that bucket (with _default scope) called MyCollection
- 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).