-
Notifications
You must be signed in to change notification settings - Fork 641
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
Structure In Unusable State #3148
Comments
Comparing with another area of the CMS where the structures are working, it looks like folding up items should not trigger an ajax call for |
Can you send a database backup to [email protected] ? We can look into it from there. |
So I recently ran into this same issue trying to programatically create about 15000 entries. We created queue jobs for them, but when we ran the queue over 8 threads (on 2 hosts), the whole structure gets smashed. In the fix you pushed, you just acquire the lock immediately and throw an exception if it fails. This is problematic because it will cause entry saving to fail in some instances. Would it be possible to:
I can just add a mutex around saving elements completely, but that's far less efficient than if we can do it here. |
@jcherniak I just added a It’s set to |
@brandonkelly Thanks for the amazingly quick resolution here! |
So looking into this further, it seems that Craft uses a yii\mutex\FileMutex. This doesn't work across load-balanced or worker-queue hosts. Any thoughts about using a DbMutex instead? |
@jcherniak probably not a bad idea. Can you request in a separate issue? |
Description
At some point our structure has devolved into an unusable state. Reassigning an entry to a different parent doesn't work. Items show up under two parents at the same time. Expanding contracting doesn't work. Chunks of hierarchy are missing. See screenshot.
Also, here is a screenshot of an error i received when trying to remove a parent (to set element back to
the root of the structure)
Steps to reproduce
Still trying to figure this out. Structures in other areas of the CMS are working ok. Possibly related to depth?
Additional info
The text was updated successfully, but these errors were encountered: