What does this error mean?
Especially, what do they mean by : Please try again
Does it mean that the transaction failed I have to re-run the transaction manually?
From what I understood from the documentation,
The transaction read a document that was modified outside of the
transaction. In this case, the transaction automatically runs again.
The transaction is retried a finite number of times.
If so, on which documents?
The error do not indicate which document it is talking about. I just get this stack:
{ Error: 10 ABORTED: Too much contention on these documents. Please
try again.
at Object.exports.createStatusErrornode_modulesgrpcsrccommon.js:87:15)
at ClientReadableStream._emitStatusIfDone
ode_modulesgrpcsrcclient.js:235:26)
at ClientReadableStream._receiveStatus
ode_modulesgrpcsrcclient.js:213:8)
at Object.onReceiveStatus
ode_modulesgrpcsrcclient_interceptors.js:1256:15)
at InterceptingListener._callNext node_modulesgrpcsrcclient_interceptors.js:564:42)
at InterceptingListener.onReceiveStatus
ode_modulesgrpcsrcclient_interceptors.js:614:8)
at C:UsersTolotra SamuelPhpstormProjectsCryptOcean
ode_modulesgrpcsrcclient_interceptors.js:1019:24
code: 10, metadata: Metadata { _internal_repr: {} }, details: 'Too
much contention on these documents. Please try again.' }
To recreate this error, just run a for loop on the db.runTransaction method as indicated on the documentation
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…