ScopeNotFoundException when trying to get Scope after creating it

Description

Summary: After creating scope with `CreateScopeAsync`, bucket.Scope(...) throws an exception when trying to get it.

Repro:

  1. Create Scope called "MyScope" with CreateScopeAsync

  2. Immediately call bucket.Scope("MyScope")

  3. (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)

Environment

Enterprise Edition 7.0.0 build 3739 (beta), Windows, latest .NET SDK from NuGet

Gerrit Reviews

None

Release Notes Description

None

Attachments

3
  • 21 Dec 2020, 05:59 PM
  • 21 Dec 2020, 05:59 PM
  • 21 Dec 2020, 05:59 PM

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Story Points

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created December 21, 2020 at 6:00 PM
Updated February 1, 2021 at 11:56 PM
Resolved February 1, 2021 at 11:56 PM
Instabug