Details
-
Bug
-
Resolution: Fixed
-
Major
-
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
For Gerrit Dashboard: JSCBC-1194 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
197342,2 | JSCBC-1194: Transactions: Query mode KV insert fails when parsing result | master | couchnode | Status: MERGED | +2 | +1 |