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

ScopeNotFoundException when trying to get Scope after creating it

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1.2
    • 3.1.0
    • library
    • 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:

      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)

      Attachments

        For Gerrit Dashboard: NCBC-2767
        # Subject Branch Project Status CR V

        Activity

          People

            jmorris Jeff Morris
            matthew.groves Matthew Groves
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty