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
Integrity constraint violation: 1062 Duplicate entry '1171043176' for key 'craft_blitz_elementqueries.craft_idx_wyjzxruzvkdhftefeorcyczbllfajyidnqjc' #531
Comments
Blitz must acquire a mutex lock before it can write to the Is the site running in a load-balanced environment? If it is then you should probably switch to a different driver since Craft uses a file-based mutex driver by default, see https://craftcms.com/docs/4.x/config/app.html#mutex |
The server itself is not load balanced, only the database is splitted |
How have you configured which database Craft should read versus write to? |
This inside the |
Thanks. This is likely being caused by a slight delay in the time it takes to update the replica after the primary DB is updated. I’ve fixed it in 8f25718, which you can test by running |
I was having the same issue (with a read-replica DB setup) and switching to the develop branch seems to have resolved it. 🎉 |
Glad to hear it, should be able to release this early next week. |
Released in version 4.4.7. |
Hi,
We get a lot of the error message in the blitz log file.
We are on the latest craft and blitz version.
Good to know that we are running a split db setup (1 master + 1 read)
Full error:
Blitz settings:
The text was updated successfully, but these errors were encountered: