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).
Attachments
For Gerrit Dashboard: NCBC-2784 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
144883,4 | NCBC-2784/NCBC-2767: getting a scope or collection after creation fails | master | couchbase-net-client | Status: MERGED | +2 | +1 |
145051,5 | NCBC-2810: On pre-7.0 clusters default scopes/collections may not load | master | couchbase-net-client | Status: MERGED | +2 | +1 |