Bug 745817 (EDG-47)

Summary: memcached server incr/decr doesn't work in unsigned 64bit integer mode
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-47
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-28 17:30:26 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-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