[
https://issues.apache.org/jira/browse/IGNITE-4244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15695592#comment-15695592
]
Andrey Novikov commented on IGNITE-4244:
----------------------------------------
Hi [~roman_s],
In incr/decr command we can receive Long overflow, which behavior is expected
from Redis?
{code}
jedis.set("outOfRange", "" + Long.MAX_VALUE);
Long res = jedis.incr("outOfRange");
assertFalse(res == Long.MIN_VALUE);
{code}
> Redis INCR/DECR to operate on AtomicLong.
> -----------------------------------------
>
> Key: IGNITE-4244
> URL: https://issues.apache.org/jira/browse/IGNITE-4244
> Project: Ignite
> Issue Type: Sub-task
> Reporter: Roman Shtykh
> Assignee: Roman Shtykh
> Labels: redis
> Fix For: 1.8
>
>
> "The INCR command parses the string value as an integer, increments it by
> one, and finally sets the obtained value as the new value. "
> http://redis.io/topics/data-types-intro
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)