firebase / firebase-admin-node

Firebase Admin Node.js SDK

Home Page:https://firebase.google.com/docs/admin/setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

11.10 causes "Too much contention on these documents"

0x80 opened this issue · comments

[REQUIRED] Step 2: Describe your environment

  • Operating System version: _____NA
  • Firebase SDK version: _____11.10.1
  • Firebase Product: _____ Firestore
  • Node.js version: _____18
  • NPM version: _____NA

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

Unfortunately I can only share anecdotal evidence right now.

In my project an httpCallable funtion (node18, 1st gen) is used by the client to change documents using a Firestore transaction with a few read/write/update operations. This code has been untouched for many months.

After upgrading to 11.10.1 the function now consistently returns an error "Too much contention on these documents". This hasn't happened before. Installing 11.9.0 solves the issue.

I see nothing in the release notes of 11.10.1 or 11.10.0 that I feel could be related to this.

Relevant Code:

My code is not public and while I could share it without further context, the function itself is too complex to be relevant I think.

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

Closing this for now, because I found that the errors do sporadically occur on my dev environment with 11.9 also. So there must be something structurally wrong with my code, but it remains odd that with 11.10 the errors are much more frequent.

I realize this is bug report is likely not clear enough for anyone to pick up at this point so I'm closing it anyway