Bug 745824 (EDG-72)

Summary: memcached server module delete command processing logic issue
Product: [JBoss] JBoss Data Grid 5 Reporter: Michal Linhard <mlinhard>
Component: InfinispanAssignee: Default User <jbpapp-maint>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: nobody
Target Milestone: ---   
Target Release: EAP 5.1.0 EDG TP   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/EDG-72
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-23 08:40:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michal Linhard 2010-11-17 12:17:12 UTC
project_key: EDG

The text protocol processing logic regarding delete command doesn't allow for command pipelining:

$ echo -e "delete a\r\ndelete a\r" | nc localhost 11211
CLIENT_ERROR org.infinispan.server.core.ServerException: java.io.StreamCorruptedException: Unable to parse noreply optional argument

the logic is as follows

1. read header "delete "
2. read key "a\r\n"
3. read parameters READS ERRONEOUSLY NEXT COMMAND: "delete a\r\n"

when sending one command only this is ok
$ echo -e "delete a\r" | nc localhost 11211
NOT_FOUND

because read parameters in step 3 just returns line ""
but makes trouble when delete command appears in the middle of the command input stream.

Comment 1 Galder ZamarreƱo 2010-11-18 10:08:47 UTC
Link: Added: This issue depends ISPN-781