Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatastoreSessionHandler too much contention on these datastore entities. please try again #530

Closed
dmitriytestapic opened this issue Jun 8, 2017 · 2 comments
Assignees

Comments

@dmitriytestapic
Copy link

I use Datastore Session Handler and currently I'm getting an error:

Datastore upsert failed: {
  "error": {
    "code": 409,
    "message": "too much contention on these datastore entities. please try again.",
    "status": "ABORTED"
  }
}

t happens on page where are a few AJAX requests and they write data to the same Entity. How to fix that?

@jdpedrie
Copy link
Contributor

jdpedrie commented Jun 8, 2017

Hi @dmitriytestapic,

This is a known drawback of the Datastore session handler. Take a look at the documentation for ways to mitigate these errors:

If you are building an ajax application which may issue multiple requests to the server, please design the session data carefully, in order to avoid possible data contentions. Also please see the 2nd example below for how to properly handle errors on write operations.

@dwsupplee
Copy link
Contributor

@dmitriytestapic If there is anything else we can help out with, please feel free to re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants