Bug 745837 (EDG-43) - unknown command causes a lost line in command pipeline
Summary: unknown command causes a lost line in command pipeline
Keywords:
Status: CLOSED NEXTRELEASE
Alias: EDG-43
Product: JBoss Data Grid 5
Classification: JBoss
Component: Infinispan
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: EAP 5.1.0 EDG TP
Assignee: Default User
QA Contact:
URL: http://jira.jboss.org/jira/browse/EDG-43
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-25 18:35 UTC by Michal Linhard
Modified: 2014-03-17 04:01 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-01 12:59:59 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker EDG-43 0 None None None Never

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



Note You need to log in before you can comment on or make changes to this bug.