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

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.4
    • Component/s: library
    • Labels:
      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

            Hide
            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

            Show
            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
            Hide
            jmorris Jeff Morris added a comment -

            Brant Burnett - can this be marked as resolved?

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

              People

              • Assignee:
                btburnett3 Brant Burnett
                Reporter:
                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

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.