Hide Forgot
project_key: EDG max key length in memcached server module is not limited by some explicit value. Of course this is not memcached compatibility issue, just want to clear things out: A. we want to keep the arbitrary length ? then I'm probably writing a test case with 5gig key, just for fun :-) B. we want to limit the length then let's use the limit from the protocol: "Currently the length limit of a key is set at 250 characters (of course, normally clients wouldn't need to use such long keys)" (http://github.com/memcached/memcached/blob/master/doc/protocol.txt) by characters I guess they mean bytes...
I think it's right that we limit the key size as per the protocol. Michal, out of curiosity, did you check what happens if you send keys longer than 250 characters to the standard memcached implementation? Does it through an error or truncate it?
IIRC it just works as if it was a normal key. No errors in that concern as far as I remember. (the truncating I didn't check though)
I mean I tried length 251, no extreme cases yet :-)
Oh sorry, you ment standard memcached implementation... it responds with CLIENT_ERROR
Right, so if the standard memcached throws an ERROR, we should be doing the same
Link: Added: This issue depends ISPN-746
Upgrade to 4.2.0.BETA1 when is out to have the fix.
tried with infinispan 4.2.0.BETA1 and the limitation still doesn't work with commands get and gets (the case is not handled in the method MemcachedDecoder.readKeys)
Link: Added: This issue depends ISPN-780
Release Notes Docs Status: Removed: Not Required