-
Bug
-
Resolution: Done
-
Major
-
4.1.0.Final, 4.2.0.BETA1
-
None
In Memcached server, make sure full line is read before sending errors to clients.
i.e. If you send this:
$ export KEY300=<key with length 300 chars>
$ echo -e "add $KEY300 0 0 1\r\nget a\r" | nc localhost 11212
The first command should be considered an error but the second part should be consumed without problems.
Original Memcached server would return:
CLIENT_ERROR bad command line format
END
Whereas Infinispan one returns this and the GET is ignored:
CLIENT_ERROR org.infinispan.server.core.ServerException: java.io.IOException: Key length over the 250 character limit
More info in linked JBPAPP issue.