Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-42619

COMMIT needs to return mutation tokens, ATR data, and state

    XMLWordPrintable

Details

    • 1
    • SDK46: TTL Imp., Bdura, Docs

    Description

      Part of the transaction API is TransactionResult.mutationState(), containing the final mutation tokens of all documents involved in the transaction.  This is intended to allow RYOWs post-transaction.

      There are places where the ATR (which can be selected by query) and AttemptState are also needed:

      • Know whether to do an implicit commit, and prevent double commit/rollback.  (Not strictly required, as I could track this with additional state, e.g. has commit/rollback been called.)
      • Differentiate COMMITTED vs COMPLETED so I can set TransactionResult.unstagingComplete correctly.
      • Populate the list of TransactionAttempts inside TransactionResult, which is used by the tests to e.g. verify the ATR data is written correctly.  

      So it would be helped to have this information returned in the COMMIT and ROLLBACK.

      Attachments

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

        Activity

          People

            kamini.jagtiani Kamini Jagtiani
            graham.pople Graham Pople
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty