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
plugins can be listed more than once in enabled_plugins metadata (Trac #2622) #2622
Comments
brettp wrote on 40847739-05-22 Saving multiple metadata values for a single metadata name is used throughout Elgg for tagging, plugins, and probably other systems. Putting a restriction on this to disallow multiple identical values would be a special case that can cause headaches later down the road. Instead of changing the data model, we should try to find the bug that caused 65k rows to be duplicated. |
Title changed from |
trac user javigs wrote on 40921189-02-05 Same problem, with 1.7.4: |
ewinslow wrote on 40921739-03-20 More details on my blog: http://evanwinslow.com/2010/11/elgg-troubleshooting-allowed-memory-size-of-67108864-bytes-exhausted/ |
trac user tomv wrote on 40921799-04-07 Maybe nothing to do with it.. but ticket 2177 also shows plugin system can go weird in some cases. Like unsynchronised removing from mod folder without upgrading etc. |
Milestone changed to |
Original ticket http://trac.elgg.org/ticket/2622 on 40846788-03-09 by ewinslow, assigned to unknown.
Elgg version: 1.7
Is there any reason that we'd want to allow metadata to contain duplicate values in the same field? i.e.
The reason I ask is that our production site got corrupted today during an upgrade and ended up adding multiple duplicates to the 'enabled_plugins' metadata for the site (up to 65k rows). This was causing the site to quickly run out of allotted memory. I'd appreciate a safeguard on the database level to ensure that I can't shoot myself in the foot like that again.
The text was updated successfully, but these errors were encountered: