ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Shtykh (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (IGNITE-4244) Redis INCR/DECR to operate on AtomicLong.
Date Sun, 27 Nov 2016 05:01:58 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-4244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15697123#comment-15697123
] 

Roman Shtykh edited comment on IGNITE-4244 at 11/27/16 5:01 AM:
----------------------------------------------------------------

[~anovikov]
The behavior for starting with Long.MAX_VALUE will have to produce "ERR increment or decrement
would overflow". But if you set larger than that, "ERR value is not an integer or out of range."(https://redis.io/commands/incr)
 In terms of jedis, it's both {{JedisDataException}}.
I fixed that, thank you!

Do you think this fix can be merged to the master branch? I would like to see it in 1.8.0
release.


was (Author: roman_s):
[~anovikov]
The behavior for starting with Long.MAX_VALUE will have to produce "ERR increment or decrement
would overflow". But if you set larger than that, "ERR value is not an integer or out of range."(https://redis.io/commands/incr)
 I fixed that, thank you!

Do you think this fix can be merged to the master branch? I would like to see it in 1.8.0
release.

> 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
>    Affects Versions: 1.8
>            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)

Mime
View raw message