Too much connections to datastore entities/Cloud Firestore in Datastore mode

169 views
Skip to first unread message

Andrej Candek

unread,
May 4, 2021, 4:46:46 AM5/4/21
to Firebase Google Group
Hello,

I have this error:
.<stdout>: [UNDEFINED]

too much contention on these datastore entities. please try again.
com.google.cloud.datastore.DatastoreException: too much contention on these datastore entities. please try again.
at com.google.cloud.datastore.spi.v1.HttpDatastoreRpc.translate(HttpDatastoreRpc.java:128)
at com.google.cloud.datastore.spi.v1.HttpDatastoreRpc.commit(HttpDatastoreRpc.java:154)
at com.google.cloud.datastore.DatastoreImpl$4.call(DatastoreImpl.java:496)
at com.google.cloud.datastore.DatastoreImpl$4.call(DatastoreImpl.java:493)
at com.google.api.gax.retrying.DirectRetryingExecutor.submit(DirectRetryingExecutor.java:105)
at com.google.cloud.RetryHelper.run(RetryHelper.java:76)
at com.google.cloud.RetryHelper.runWithRetries(RetryHelper.java:50)
at com.google.cloud.datastore.DatastoreImpl.commit(DatastoreImpl.java:492)
at com.google.cloud.datastore.TransactionImpl.commit(TransactionImpl.java:108)
at it.sinesy.wag.google.beans.server.GoogleDatastoreBean.insertUpdateRecord(GoogleDatastoreBean.java:2898)
.....
.....
Caused by: com.google.datastore.v1.client.DatastoreException: too much contention on these datastore entities. please try again., code=ABORTED
at com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:226)
at com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:275)
at com.google.datastore.v1.client.RemoteRpc.call(RemoteRpc.java:186)
at com.google.datastore.v1.client.Datastore.commit(Datastore.java:87)
at com.google.cloud.datastore.spi.v1.HttpDatastoreRpc.commit(HttpDatastoreRpc.java:152)
... 86 more
----------------------------------------------------

and my Cloud Datastore is configured as: Cloud Firestore in Datastore mode

as I read from the documentation https://cloud.google.com/datastore/docs/firestore-or-datastore this limit has been removed
  • Writes to an entity group are no longer limited to 1 per second.
Can you help to to understand where is the error and why this limitation is still active on my project and how can I remove it?

Thanks


Sam Stern

unread,
May 4, 2021, 5:09:53 AM5/4/21
to Firebase Google Group
Hi Andrej,

This mailing list is for Firebase users which means we really only know about Firestore in Native Mode, so I don't think anyone here will be able to answer your question.

You will have better luck finding an expert on one of these lists:
https://groups.google.com/g/google-cloud-firestore-discuss
https://groups.google.com/g/gcd-discuss

Good luck!
Sam

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/75986efb-9f35-46a4-ab03-ec3d4e24c2fbn%40googlegroups.com.

Andrej Candek

unread,
May 4, 2021, 5:32:57 AM5/4/21
to Firebase Google Group
Hi Sam,
thanks. I'll post my request on the first group you linked.

Best regards ! =)

Reply all
Reply to author
Forward
0 new messages