Details
-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
None
-
None
-
None
-
1
Description
Scenario is that under a KV get()/remove() with transactions, I later check in the UI and the doc is still there, but it should not be since the txn completed without errors.
Oddly, under the client, all that is logged is the txn attempt and a subsequent non-transactional get does fail. Checking with cbc shows it's still there.
async function remove() {
|
let cluster = await getCluster()
|
let collection = await getCollection()
|
// tag::remove[]
|
cluster.transactions().run(async ctx => {
|
const doc = await ctx.get(collection, "doc-id")
|
await ctx.remove(doc)
|
})
|
// end::remove[]
|
console.log("removeā¦")
|
}
|
I suspect it's something I'm getting wrong with my awaits, but I can't figure out what at the moment.
Attachments
Issue Links
- is caused by
-
JSCBC-984 Transactional meta-data is not marshalled
- Resolved