Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1144

libcouchbase should reorder subdocument operations to be legal

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0-beta2
    • Fix Version/s: 3.2.4
    • Component/s: library
    • Labels:
      None
    • Story Points:
      1

      Description

      Performing subdocument operations should reorder xattr operations first so that they are accepted as legal by the server.

        Attachments

          Issue Links

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

            Activity

            Hide
            avsej Sergey Avseyev added a comment -

            Brett Lawson, we cannot reorder specs provided by user, because this would break the index consistency in the responses. In libcouchbase API the user explicitly tell use the index to associate with subdocument spec. The server returns specific code that will be caught during development cycle.

            Show
            avsej Sergey Avseyev added a comment - Brett Lawson , we cannot reorder specs provided by user, because this would break the index consistency in the responses. In libcouchbase API the user explicitly tell use the index to associate with subdocument spec. The server returns specific code that will be caught during development cycle.
            Hide
            avsej Sergey Avseyev added a comment -

            CRUD RFC says

            The server requires that all Xattr operations must come before any regular operations when sent to the server; however, when the results are returned from the server the previous order specified by the User must be returned so that ContentAs(int index) can be used to fetch the correct result. A data structure may be used internally to “remember” this ordering.

            Show
            avsej Sergey Avseyev added a comment - CRUD RFC says The server requires that all Xattr operations must come before any regular operations when sent to the server; however, when the results are returned from the server the previous order specified by the User must be returned so that ContentAs(int index) can be used to fetch the correct result. A data structure may be used internally to “remember” this ordering.

              People

              Assignee:
              david.kelly David Kelly
              Reporter:
              brett19 Brett Lawson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes

                    PagerDuty