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

CockroachDB: Retrying mechanism #2663

Closed
juliahayward opened this issue Feb 5, 2020 · 1 comment
Closed

CockroachDB: Retrying mechanism #2663

juliahayward opened this issue Feb 5, 2020 · 1 comment

Comments

@juliahayward
Copy link
Member

@juliahayward juliahayward commented Feb 5, 2020

(Adding as an issue as it appears not to have been raised as one before?)

CockroachDB recommend the use of retries should we see a SQL error code 40001, which represents a lock wait timeout. We are adding a pair of classes:

  • DefaultExecutionStrategy - which simply fires a SQL call at the db once
  • CockroachDBRetryingStrategy - which attempts retries up to a set limit if the above code is received from the database.

This should be straightforward to extend if other databases need a similar approach (or if people want to fork and try their own strategies).

@juliahayward
Copy link
Member Author

@juliahayward juliahayward commented Feb 6, 2020

Released in 6.2.2

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

1 participant