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

Single Subdoc Mutation Operations Don't Return Mutation Token

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 2.4.4
    • library
    • None

    Description

      Steps to reproduce:

      1. Enable enhanced durability
      2. Create a document
      3. Perform a single mutation against one attribute in the document
      4. Observe that MutationToken is the default (all -1)

      Note: Fix cannot be completed until blocker NCBC-1348 is fixed

      Attachments

        Issue Links

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

          Activity

            Fix should be easy once http://review.couchbase.org/#/c/74641 is merged.  At this point, the MutationToken will be properly deserialized on singular mutations.

            The remaining issue is that DocumentFragment<T>.Token is assigned before the call to GetValue, so the MutationToken hasn't been deserialized yet.

            https://github.com/couchbase/couchbase-net-client/blob/2d2854fa54dce57803e94e86ad9820a84b1ca72d/Src/Couchbase/IO/Operations/SubDocument/SubDocSingularBase.cs#L117

            btburnett3 Brant Burnett added a comment - Fix should be easy once http://review.couchbase.org/#/c/74641 is merged.  At this point, the MutationToken will be properly deserialized on singular mutations. The remaining issue is that DocumentFragment<T>.Token is assigned before the call to GetValue, so the MutationToken hasn't been deserialized yet. https://github.com/couchbase/couchbase-net-client/blob/2d2854fa54dce57803e94e86ad9820a84b1ca72d/Src/Couchbase/IO/Operations/SubDocument/SubDocSingularBase.cs#L117
            jmorris Jeff Morris added a comment -

            Brant Burnett - can this be marked as resolved?

            jmorris Jeff Morris added a comment - Brant Burnett - can this be marked as resolved?

            People

              btburnett3 Brant Burnett
              btburnett3 Brant Burnett
              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