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

MutateIn is not throwing and classifying sub-doc errors correctly.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.4
    • None
    • None
    • 1

    Description

      I think this has gone both directions. We need to nail down what the correct behavior is according to the RFC.

       

      Currently, a MutateIn with StoreSemantics.Upsert does not throw PathAlreadyExists on an XATTR with CreatePath: false, even when the server is returning SubDocPathExists.  It just silently succeeds, and there's no way for the user to detect it via any public fields/properties/methods on the return value.

       

      Transactions RFC seems to imply that it should be throwing.

      Attachments

        Issue Links

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

          Activity

            richard.ponton Richard Ponton created issue -

            It seems we are swallowing SubDocMultiPathFailure.

             

                                if (status == ResponseStatus.SubDocMultiPathFailure)
                                

            {                         return;                     }
            richard.ponton Richard Ponton added a comment - It seems we are swallowing SubDocMultiPathFailure.                       if (status == ResponseStatus.SubDocMultiPathFailure)                      {                         return;                     }
            richard.ponton Richard Ponton made changes -
            Field Original Value New Value
            Status New [ 10003 ] Open [ 1 ]
            richard.ponton Richard Ponton made changes -
            Assignee Jeff Morris [ jmorris ] Richard Ponton [ JIRAUSER24824 ]
            richard.ponton Richard Ponton made changes -
            Link This issue blocks TXNN-71 [ TXNN-71 ]
            richard.ponton Richard Ponton made changes -
            Summary MutateIn is not throwing PathAlreadyExists on SubDocPathExists MutateIn is not throwing and classifying sub-doc errors correctly.
            richard.ponton Richard Ponton made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            richard.ponton Richard Ponton made changes -
            Fix Version/s 3.1.4 [ 17424 ]
            richard.ponton Richard Ponton made changes -
            Link This issue relates to NCBC-2850 [ NCBC-2850 ]
            richard.ponton Richard Ponton made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]

            People

              richard.ponton Richard Ponton
              richard.ponton Richard Ponton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty