commit | 07a5b24a89746e004cee8f289d914416d9354aa9 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Wed Sep 15 12:51:42 2021 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Wed Sep 15 17:08:08 2021 +0000 |
tree | 9bc17eeca6cfb36c11cafc88be056d11f222105e | |
parent | d3d41b5240aa8cb0d18f83d456307c07c1ad97f6 [diff] |
internal/database: back off serialization failure exponentially When a transaction encounters a serialization failure, retry after waiting some time, instead of retrying immediately. Double the wait time on each failure. Change-Id: I2ca3252182115e78e00048aa229fd16dd427f61c Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/350111 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
Pkg.go.dev is a website for discovering and evaluating Go packages and modules.
You can check it out at https://pkg.go.dev.
If you want to report a bug or have a feature suggestion, please first check the known issues to see if your issue is already being discussed. If an issue does not already exist, feel free to file an issue.
For answers to frequently asked questions, see go.dev/about.
You can also chat with us on the #pkgsite Slack channel on the Gophers Slack.
We would love your help!
Our canonical Git repository is located at go.googlesource.com/pkgsite. There is a mirror of the repository at github.com/golang/pkgsite.
To contribute, please read our contributing guide.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.