Details
-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
None
-
changeset 13 on gerrit (from afternoon of jan 29) and subdependencies:
ingenthr@ingenthr-mbp-103 couchnode % git describe
v3.2.1-21-gadbe8793
ingenthr@ingenthr-mbp-103 couchnode % git submodule
df11990a9785b6697ee7a3d138cf2c0672038247 deps/couchbase-cxx-client (remotes/origin/HEAD)
d8b07951f2e998a431ebd130765bd933ec147557 deps/couchbase-transactions-cxx (v2.0.0-beta.1-20-gd8b0795)
changeset 13 on gerrit (from afternoon of jan 29) and subdependencies: ingenthr@ingenthr-mbp-103 couchnode % git describe v3.2.1-21-gadbe8793 ingenthr@ingenthr-mbp-103 couchnode % git submodule df11990a9785b6697ee7a3d138cf2c0672038247 deps/couchbase-cxx-client (remotes/origin/HEAD) d8b07951f2e998a431ebd130765bd933ec147557 deps/couchbase-transactions-cxx (v2.0.0-beta.1-20-gd8b0795)
-
1
Description
After a flush, I will get a document not found when doing a get after an insert in a transaction context.
async function getReadOwnWrites() {
|
let cluster = await getCluster()
|
let collection = await getCollection()
|
// tag::getReadOwnWrites[]
|
cluster.transactions().run(async ctx => {
|
const docId = "docId"
|
|
ctx.insert(collection, docId, {})
|
|
// TODO: seems to fail/be a bug?
|
const doc = await ctx.get(collection, docId)
|
})
|
// end::getReadOwnWrites[]
|
}
|
Logging says
[2022-01-29 21:26:16.015] [15388,20311165] [info] 0ms, 0x7fcdbad1e2b0 3 active clients (including this one), 1024 atrs to check 351906us delay between checking each atr
|
/Users/ingenthr/src/couchnode/dist/bindingutilities.js:446
|
return new errs.TransactionOperationFailedError(txnExternalExeptionFromCpp(err.cause));
|
^
|
TransactionOperationFailedError: transaction operation failed
|
at Object.errorFromCpp (/Users/ingenthr/src/couchnode/dist/bindingutilities.js:446:16)
|
at /Users/ingenthr/src/couchnode/dist/transactions.js:140:48 {
|
cause: 'document_not_found_exception'
|
}
|
Attachments
Issue Links
- is caused by
-
TXNCXX-200 nlohmann crash when doing RYOW
- Closed