-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Retrying the insert on issue fails, and masks the actual error #8302
Comments
The retry should be done after the transaction end. It should be out of |
I agree, but as I've said here, detecting the correct error is very difficult. |
If the error is insert error we could retry it, I think. |
Oh, you mean any errors, as long as they come from the insert? That's much easier. I'll work on that. I'll asume that #8304 will be merged and I'll base on it. |
Should be fixed by #8307 |
Agree |
Description
The changes introduced in #7898 simply don't work, because if
xorm.Session.Insert()
returns any errors, the session becomes invalidated, so subsequent attempts fail with:gitea/models/issue.go
Lines 1108 to 1122 in c6fb7fe
I'm sorry, after so many attempts to solve the potential duplicate
index
, we're back to square zero.@lunny how would you like to handle this?
The text was updated successfully, but these errors were encountered: