Skip to content
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

alloptions race conditions #18

Open
soulseekah opened this issue Feb 21, 2020 · 3 comments
Open

alloptions race conditions #18

soulseekah opened this issue Feb 21, 2020 · 3 comments

Comments

@soulseekah
Copy link

https://core.trac.wordpress.org/ticket/31245

Raised by @mihadan and probably @msigley when he said "the notorious 'alloptions' bug" in #13 (comment)

Handled in PR #6 for now, but needs a refresh.

@soulseekah
Copy link
Author

soulseekah commented Feb 21, 2020

Why didn't they use https://github.com/soulseekah/wp-lock 😸 ?

Are there any race conditions in our preloaded implementation?

@msigley
Copy link

msigley commented Feb 21, 2020

Yes there are. The race condition occurs on sets to different keys on concerent requests. It occurs because all of the values are stored in one big blob instead of individual keys.

@msigley
Copy link

msigley commented Feb 21, 2020

The fix for redis would be to replace the alloptions key with an mget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants