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

Regression in lambda-based sub doc API due to LookupInResult changes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 3.4.11
    • 3.4.11
    • None
    • None
    • Impediment
    • 1
    • SDK32

    Description

      This change https://github.com/couchbase/couchbase-net-client/commit/7ce9dbd76c8d6e623e3c2876a66f3dfe676f28e6 from NCBC-3449 introduces a regression, which can be seen on the SubdocTests.Can_perform_lookup_in_via_lambda integration test.

      System.NotSupportedException
      The class implementing ILookupInResult must also implement ITypeSerializerProvider.
         at Couchbase.Utils.ThrowHelper.ThrowNotSupportedException(String message) in D:\source\repos\couchbase-net-client\src\Couchbase\Utils\ThrowHelper.cs:line 55
         at Couchbase.KeyValue.LookupInResult`1..ctor(ILookupInResult inner) in D:\source\repos\couchbase-net-client\src\Couchbase\KeyValue\LookupInResult`.cs:line 24
         at Couchbase.KeyValue.CollectionExtensions.LookupInAsync[TDocument](ICouchbaseCollection collection, String id, Action`1 configureBuilder, LookupInOptions options) in D:\source\repos\couchbase-net-client\src\Couchbase\KeyValue\CollectionExtensions.cs:line 597
         at Couchbase.IntegrationTests.SubdocTests.Can_perform_lookup_in_via_lambda() in D:\source\repos\couchbase-net-client\tests\Couchbase.IntegrationTests\SubdocTests.cs:line 92
         at Couchbase.IntegrationTests.SubdocTests.Can_perform_lookup_in_via_lambda() in D:\source\repos\couchbase-net-client\tests\Couchbase.IntegrationTests\SubdocTests.cs:line 104
         at Xunit.Sdk.TestInvoker`1.<>c__DisplayClass48_1.<<InvokeTestMethodAsync>b__1>d.MoveNext() in C:\Dev\xunit\xunit\src\xunit.execution\Sdk\Frameworks\Runners\TestInvoker.cs:line 264
      --- End of stack trace from previous location ---
         at Xunit.Sdk.ExecutionTimer.AggregateAsync(Func`1 asyncAction) in C:\Dev\xunit\xunit\src\xunit.execution\Sdk\Frameworks\ExecutionTimer.cs:line 48
         at Xunit.Sdk.ExceptionAggregator.RunAsync(Func`1 code) in C:\Dev\xunit\xunit\src\xunit.core\Sdk\ExceptionAggregator.cs:line 90
      

      In order to support lamba-based sub-doc operations, LookupInResult must implement ITypeSerializerProvider.

      Attachments

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

        Activity

          People

            emilien.bevierre Emilien Bevierre
            btburnett3 Brant Burnett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty