-
Notifications
You must be signed in to change notification settings - Fork 642
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
Duplicate entry '3216-10' for key 'revisions_sourceId_num_unq_idx' #7598
Comments
We are also running into this integrity constraint violation when a resave task is being run in the queue. Has it been establish as a bug? Anything we can provide to help debug? |
Sorry, I missed the original post. This shouldn’t be possible as cms/src/services/Revisions.php Lines 75 to 79 in 669dc0f
Have either of you overridden the |
@brandonkelly not here no. |
Found a way to reproduce this, if read/write splitting was in use, as there can be a slight delay in the time it takes to update the replica(s) after the primary DB is updated. Just released 3.6.10 with a fix for that. Any chance that could have been the issue here? |
Not using read / write splitting but this release fixed it on our project. Thanks! |
Going to close this… @truszko1 Let me know if you’re still having issues on 3.6.10+. |
I'm seeing this behaviour on a 3.6.12 install. Anything I can do to help troubleshooting? |
@engram-design Can you provide steps to reproduce, starting with a fresh Craft install? |
@brandonkelly Damn, it's gonna be one of those issues. I couldn't replicate it locally, and now on the server it's no longer doing it. I was also using the sitecopy plugin, and when disabling that, it seemed to save. I'll keep an eye on it, but it seems environmental. |
Fixes #9 Fixes craftcms/cms#7598 Fixes craftcms/cms#14122
We have the same problem with some entries, under Craft CMS 4.7.1
|
Description
We are encountering an integrity constraint violation when saving Entries. If the same entry is being saved by two users simultaneously, one of them will be shown a SQL error
The exception is being thrown by
in /var/www/vendor/craftcms/cms/src/services/Revisions.php at line 142– craft\helpers\Db::insert()
when the Revisions class is attempting to insert a revision.Is this an expected behavior? This seems new with Craft 3.6. We could probably "fix" this error by removing the index, but surely the index was added intentionally to protect against something.
I don't see how this might be specific to our instance configuration, but maybe? I'd appreciate some feedback.
Thanks!
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: