Bug 745837 (EDG-43)

Summary: unknown command causes a lost line in command pipeline
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-43
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-01 12:59:59 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-25 18:35:40 UTC
project_key: EDG

tried in infinispan 4.2.0.CR2
memcached server consumes one more line of input than it has to when unknown command occurs.

input:
"bogus\r\ndelete a\r\n"
expected output:
ERROR
NOT_FOUND
actual output:
ERROR

input:
"bogus\r\ndelete a\r\ndelete a\r\n"
expected output:
ERROR
NOT_FOUND
NOT_FOUND
actual output:
ERROR
NOT_FOUND

input: "bogus \r\ndelete a\r\ndelete a\r" (space after bogus) behaves as expected

check MemcachedDecoder.scala, line 45
readLine consumes next line even when it was already done by readElement

Comment 1 Galder ZamarreƱo 2010-11-30 11:12:43 UTC
Link: Added: This issue depends ISPN-811