Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-1194

Transactions: QueryMode KV insert fails when parsing result

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.2.8
    • None
    • None
    • None
    • 1

    Description

      When a`TransactionAttemptContext` enters QueryMode (i.e. after a query has been issued in the ctx), KV operations are converted into N1QL. When a QueryMode insert operation returns the resulting `TransactionGetResult`, the result does not contain content which is causing the SDK to have an uncaught `SyntaxError: Unexpected end of JSON input` error when the SDK tries to translate the result (see code here).

      Tasks:

      • The SDK should only try to parse the content if the content exists.
      • Add tests to confirm KV operations w/in QueryMode operate as intended.

      Attachments

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

        Activity

          People

            jared.casey Jared Casey
            jared.casey Jared Casey
            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