Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.1.0
-
Enterprise Edition 7.0.0 build 3739 (beta), Windows, latest .NET SDK from NuGet
-
1
Description
Summary: After creating scope with `CreateScopeAsync`, bucket.Scope(...) throws an exception when trying to get it.
Repro:
- Create Scope called "MyScope" with CreateScopeAsync
- Immediately call bucket.Scope("MyScope")
- (See attached source code and logs)
Expected:
Scope object ready to use. Or maybe there's a missing "WaitUntilScopeIsAvailable"?
Actual:
ScopeNotFoundException (see below).
Exception:
Unhandled exception. Couchbase.Management.Collections.ScopeNotFoundException: Scope with name MyScope not found
at Couchbase.Core.BucketBase.Scope(String scopeName)
at ForumQuestions.Program.Main(String[] args) in c:\zproj\ForumQuestions\ForumQuestions\Program.cs:line 40
at ForumQuestions.Program.<Main>(String[] args)
Attachments
For Gerrit Dashboard: NCBC-2767 | ||||||
---|---|---|---|---|---|---|
# | 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 |
151337,2 | NCBC-2858: Move collection id fetch into the operation call on the collection | master | couchbase-net-client | Status: MERGED | +2 | +1 |