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

Cannot pass any pre-handover KV operations to query at BEGIN WORK point

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      This transaction:

      transactions.run((ctx) -> {
          ctx.insert(collection, docId, initial);
          ctx.query("SELECT * from `default` LIMIT 1");
      }); 

      fails at the BEGIN WORK point with error:

      {"code":5000,"message":"transactional authorization - cause: Transactions are not configured for ATR Bucket"} 

      from code https://github.com/couchbase/query/blob/ce919de4316e2b24a7118d0dec5ace910fed789e/execution/txauthorize.go#L91.

      There's two things going on here:

      1. Query is reading the "txdata" opaque structure which it should not be doing, as raised separately in MB-42412.
      2. Query is rejecting the transaction because it already has an ATR entry.  This doesn't make sense, as a major objective of this integration project is to allow existing transactions (which will have an ATR entry) to then run queries.

      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:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty