memcached server incr/decr doesn't work in unsigned 64bit integer mode
----------------------------------------------------------------------
Key: ISPN-743
URL:
https://jira.jboss.org/browse/ISPN-743
Project: Infinispan
Issue Type: Bug
Components: Cache Server
Affects Versions: 4.2.0.ALPHA4, 4.1.0.Final
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Fix For: 4.2.0.BETA1, 4.2.0.Final
[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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira