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

FIT KV: SubdocMutationTest - Full Document using "" throws InvalidArgument

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.5.0
    • None
    • None
    • None

    Description

      Root Issue:

      The SDK was not using the correct OpCodes for Replace/Remove operations when the given path is empty ("").

      The value of the operation was also being written (or was dedicated a section of the packet) for OpCode.Delete when it should not have (i.e OpCode.Delete is used for Remove Specs with an empty path, instead of OpCode.SubDelete).

      These tests are failing:

      1. removeFullDocAndSetSystemXattr
      2. replaceFullDocument

      Both fail with:

      Error formatting macro: code: java.lang.StackOverflowError

      Expected successful KV mutation result but got exception {
      couchbase {
      name: "InvalidArgumentException"
      type: SDK_INVALID_ARGUMENT_EXCEPTION
      serialized: "Couchbase.Core.Exceptions.InvalidArgumentException: Exception of type \'Couchbase.Core.Exceptions.InvalidArgumentException\' was thrown.\n at Couchbase.Core.Retry.RetryOrchestrator.RetryAsync(BucketBase bucket, IOperation operation, CancellationTokenPair tokenPair) in transactions-fit-performer/performers/dotnet/couchbase-net-client/src/Couchbase/Core/Retry/RetryOrchestrator.cs:line 334\n at Couchbase.KeyValue.CouchbaseCollection.MutateInAsync(String id, IEnumerable`1 specs, MutateInOptions options) in transactions-fit-performer/performers/dotnet/couchbase-net-client/src/Couchbase/KeyValue/CouchbaseCollection.cs:line 912\n at Couchbase.Transactions.FitPerformer.ClusterBucketScopeCollectionCommandExecutor.HandleCollectionLevelCommand(Command op, ClusterConnection connection, Result result) in transactions-fit-performer/performers/dotnet/Couchbase.Transactions.FitPerformer/Workload/ClusterBucketScopeCollectionCommandExecutor.cs:line 170\n at Couchbase.Transactions.FitPerformer.ClusterBucketScopeCollectionCommandExecutor.RunCommand(Command op, ClusterConnection connection, Result result, ConcurrentDictionary`2 spans, String runId, Action`1 consumer, StreamOwner streamOwner, Counters counters) in transactions-fit-performer/performers/dotnet/Couchbase.Transactions.FitPerformer/Workload/ClusterBucketScopeCollectionCommandExecutor.cs:line 62\n at Couchbase.Transactions.FitPerformer.SdkCommandExecutor.ExecuteCommand(Command op, ClusterConnection connection) in transactions-fit-performer/performers/dotnet/Couchbase.Transactions.FitPerformer/Workload/SdkCommandExecutor.cs:line 175\n at Couchbase.Transactions.FitPerformer.SdkCommandExecutor.RunCommand(Command command, Counters counters, ClusterConnection connection, Action`1 consumer, String runId, StreamOwner streamOwner, ConcurrentDictionary`2 spans) in transactions-fit-performer/performers/dotnet/Couchbase.Transactions.FitPerformer/Workload/SdkCommandExecutor.cs:line 42\n----------------------Context Info--------------------------\n

      {\"dispatchedFrom\":\"::1\",\"dispatchedTo\":\"::1\",\"documentKey\":\"962946f8-a3bc-477e-a93f-c1b8fd31c4ac\",\"clientContextId\":\"199\",\"cas\":0,\"status\":\"invalidArguments\",\"bucketName\":\"default\",\"collectionName\":\"_default\",\"scopeName\":\"_default\",\"message\":null,\"opCode\":\"subMultiMutation\",\"retryReasons\":[]}

      \n"
      }
      }

      Attachments

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

        Activity

          People

            emilien.bevierre Emilien Bevierre
            emilien.bevierre Emilien Bevierre
            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