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

Document D1 errors and expected error rates #18485

Open
Cherry opened this issue Nov 29, 2024 · 0 comments
Open

Document D1 errors and expected error rates #18485

Cherry opened this issue Nov 29, 2024 · 0 comments
Assignees
Labels
content:new Request for new/missing content documentation Documentation edits product:d1 D1: https://developers.cloudflare.com/d1/

Comments

@Cherry
Copy link
Contributor

Cherry commented Nov 29, 2024

Proposed changes

As per the D1 team and what folks have observed since the product hit GA, errors are "not unexpected".

Errors like:

  • D1 DB storage operation exceeded timeout which caused object to be reset
  • D1_ERROR: Network connection lost
  • Internal error while starting up D1 DB storage caused object to be reset
  • D1 DB's isolate exceeded its memory limit and was reset

occur somewhat regularly, and you'll find regular reports in the #d1-database channel in Discord.

The team has said:

retry their query and unless there is an underlying issue with the database, it should eventually work

as well as that a handful of errors every several hours is not unexpected.

An example of the number of errors one can expect with D1 over ~9 months:
image
image

While these errors occurring might be expected, I don't think this is well documented currently, and should be made clearer that people should develop with these in mind, focusing on building idempotency into their apps if they scale with D1.

Subject Matter

D1

Content Location

https://developers.cloudflare.com/d1/

Additional information

No response

@Cherry Cherry added content:new Request for new/missing content documentation Documentation edits labels Nov 29, 2024
@github-actions github-actions bot added the product:d1 D1: https://developers.cloudflare.com/d1/ label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content:new Request for new/missing content documentation Documentation edits product:d1 D1: https://developers.cloudflare.com/d1/
Projects
None yet
Development

No branches or pull requests

6 participants