-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
TagAwareAdapter over nonbinary memcached connections corrupts memcache. #27405
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
Comments
Yes, that's expected: non-binary protocol is too loose, just turn it on. |
Actually we use mcrouter to balance memcache servers. It does not support binary protocol. It was surprise when cache starts randomly returns null values. Should it be mentioned in docs? |
Hum, it could make sense actually to make it work in no-binary mode. We'd need to encode the keys using |
ok. i'll try |
…d connection in ascii mode
…d connection in ascii mode
…d connection in ascii mode
…d connection in ascii mode
…upts memcache (Aleksey Prilipko) This PR was merged into the 3.4 branch. Discussion ---------- TagAwareAdapter over non-binary memcached connections corrupts memcache | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | no | Fixed tickets | #27405 | License | MIT | Doc PR | TagAwareAdapter uses non-ascii symbols in key names. It breaks memcached connections in non-binary mode. Commits ------- 67d4e6d bug #27405 [Cache] TagAwareAdapter should not corrupt memcached connection in ascii mode
* 3.4: [FrameworkBundle] decouple some cache-warmer's test from internal details bug #27405 [Cache] TagAwareAdapter should not corrupt memcached connection in ascii mode Remove released semaphore
* 4.0: [FrameworkBundle] decouple some cache-warmer's test from internal details bug #27405 [Cache] TagAwareAdapter should not corrupt memcached connection in ascii mode Remove released semaphore
* 4.1: [FrameworkBundle] decouple some cache-warmer's test from internal details bug #27405 [Cache] TagAwareAdapter should not corrupt memcached connection in ascii mode Remove released semaphore
Symfony version(s) affected: 4.0.0
Description
TagAwareAdapter over nonbinary memcached connections corrupts memcache.
How to reproduce
Possible Solution
TagAwareAdapter uses '\0' in key names, that are incompatible with memcached in normal mode. Possible solution is to change key prefix.
The text was updated successfully, but these errors were encountered: