Bug 745817 (EDG-47) - memcached server incr/decr doesn't work in unsigned 64bit integer mode
Summary: memcached server incr/decr doesn't work in unsigned 64bit integer mode
Keywords:
Status: CLOSED NEXTRELEASE
Alias: EDG-47
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-47
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-26 09:08 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-10-28 17:30:26 UTC
Type: Bug


Attachments (Terms of Use)


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

Description Michal Linhard 2010-10-26 09:08:59 UTC
project_key: EDG

run EAP datagrid profile
[mlinhard@michal-linhard ~]$ telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
set a 0 0 19
9223372036854775808
STORED
incr a 1
SERVER_ERROR org.infinispan.server.core.ServerException: java.lang.NumberFormatException: For input string: "9223372036854775808"

when I run original memcached server on port 11212 it works:
[mlinhard@michal-linhard ~]$ telnet localhost 11212
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
set a 0 0 1
A
STORED
set a 0 0 19
9223372036854775808
STORED
incr a 1
9223372036854775809

----------------
Other issue here is overflow:
set a 0 0 19
9223372036854775807
incr a 1
-9223372036854775808

whereas original memcached server overflows in "unsigned mode":
set b 0 0 20                     
18446744073709551615
incr b 1
0

Comment 1 Galder Zamarreño 2010-10-28 15:24:01 UTC
Link: Added: This issue depends ISPN-743


Comment 2 Galder Zamarreño 2010-10-29 08:58:22 UTC
Michal, excellent work on being so thorough in your testing. Excellent work!!!!

Comment 3 Anne-Louise Tangring 2011-10-11 17:05:51 UTC
Release Notes Docs Status: Removed: Not Required 



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