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

Error returned on bucket.DefaultCollection()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 3.0.0-beta.3
    • 3.0.0-beta.2
    • None

    Description

      We are no longer able to get the default collection for a bucket. It instead returns the following error message:

      Couchbase.KeyValue.CollectionOutdatedException : Cannot find collection {name}

      This can be seen in full in the stack trace below:

       X Couchbase.IntegrationTests.DataStructures.PersistentListTests.Test_Add [8s 936ms]
       Error Message:
       Couchbase.KeyValue.CollectionOutdatedException : Cannot find collection {name}
       Stack Trace:
       at Couchbase.KeyValue.Scope.get_Item(String name) in /data/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/src/Couchbase/KeyValue/Scope.cs:line 37
       at Couchbase.Core.BucketBase.DefaultCollection() in /data/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/src/Couchbase/Core/BucketBase.cs:line 50
       at Couchbase.IntegrationTests.Fixtures.ClusterFixture.GetDefaultCollection() in /data/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/tests/Couchbase.IntegrationTests/Fixtures/ClusterFixture.cs:line 35
       at Couchbase.IntegrationTests.DataStructures.PersistentListTests.GetPersistentList(String id) in /data/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/tests/Couchbase.IntegrationTests/DataStructures/PersistentListTests.cs:line 59
       at Couchbase.IntegrationTests.DataStructures.PersistentListTests.Test_Add() in /data/workspace/dotnet-sdk/couchbase-net-client-scripted-build-pipeline/couchbase-net-client/tests/Couchbase.IntegrationTests/DataStructures/PersistentListTests.cs:line 104
       X Couchbase.IntegrationTests.DataStructures.PersistentDictionaryTests.Test_Add [8s 10ms]
       Error Message:
       Couchbase.KeyValue.CollectionOutdatedException : Cannot find collection {name}

      I ran into this new error this myself this morning whilst still trying to update sdkd-net. These errors are also being reported in a number of integration tests that were run, as the snippet above shows. The integration test run is part of this job:  http://sdk.jenkins.couchbase.com/job/dotnet-sdk/job/couchbase-net-client-scripted-build-pipeline/1715/

      To be clear, the bucket is being successfully opened and then the error occurs here:

      var collection = bucket.DefaultCollection(); 

      I believe this was introduced in NCBC-2181.

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jmorris Jeff Morris
              will.broadbelt Will Broadbelt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty