Firestore client retries a transaction when a document already exists #889
Labels
api: firestore
Issues related to the googleapis/nodejs-firestore API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
This issue relates to the fix introduced for #827
Current behavior
When a document already exists, if one tries create a document using the same path with
create()
inside of a transaction, the transaction will keep retrying until it runs out of attempts.Expected behavior
When a document is created with
create()
inside of a transaction, the transaction should intermediately terminate and throw the error.Environment details
@google-cloud/firestore
version: 3.4.0The text was updated successfully, but these errors were encountered: