[jira] [Updated] (GEODE-9424) Radish command arguments must support Long values

2022-02-08 Thread Anthony Baker (Jira)


 [ 
https://issues.apache.org/jira/browse/GEODE-9424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anthony Baker updated GEODE-9424:
-
Labels: pull-request-available unreleased  (was: pull-request-available)

> Radish command arguments must support Long values
> -
>
> Key: GEODE-9424
> URL: https://issues.apache.org/jira/browse/GEODE-9424
> Project: Geode
>  Issue Type: Bug
>  Components: redis
>Affects Versions: 1.15.0
>Reporter: Donal Evans
>Assignee: Donal Evans
>Priority: Major
>  Labels: pull-request-available, unreleased
> Fix For: 1.15.0
>
>
> To match the behaviour seen when using native Redis, all command arguments 
> that take integer values (that is, as opposed to float or string) must allow 
> values in the range of {{Long.MIN_VALUE}} -> {{Long.MAX_VALUE}}.
> Currently, passing a value smaller than {{Integer.MIN_VALUE}} or larger than 
> {{Integer.MAX_VALUE}} to these commands results in an error being returned, 
> which is not the case for native Redis.
> Currently affected commands are:
>  SCAN
>  SSCAN
>  HSCAN
>  SPOP
>  SRANDMEMBER
>  BITPOS
>  GETBIT
>  SETBIT
>  SETRANGE
> It should be enough to simply parse the argument as a Long and then narrow it 
> to an int in most cases, as internally the maximum value that the argument 
> can possibly take is {{Integer.MAX_VALUE}}. For example, [the maximum number 
> of elements in a Redis set is 2^32 - 
> 1|https://redis.io/topics/data-types#sets], so the largest meaningful value 
> for the SSCAN CURSOR argument internally is {{Integer.MAX_VALUE}}.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (GEODE-9424) Radish command arguments must support Long values

2021-07-13 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/GEODE-9424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated GEODE-9424:
--
Labels: pull-request-available  (was: )

> Radish command arguments must support Long values
> -
>
> Key: GEODE-9424
> URL: https://issues.apache.org/jira/browse/GEODE-9424
> Project: Geode
>  Issue Type: Bug
>  Components: redis
>Affects Versions: 1.15.0
>Reporter: Donal Evans
>Assignee: Donal Evans
>Priority: Major
>  Labels: pull-request-available
>
> To match the behaviour seen when using native Redis, all command arguments 
> that take integer values (that is, as opposed to float or string) must allow 
> values in the range of {{Long.MIN_VALUE}} -> {{Long.MAX_VALUE}}.
> Currently, passing a value smaller than {{Integer.MIN_VALUE}} or larger than 
> {{Integer.MAX_VALUE}} to these commands results in an error being returned, 
> which is not the case for native Redis.
> Currently affected commands are:
>  SCAN
>  SSCAN
>  HSCAN
>  SPOP
>  SRANDMEMBER
>  BITPOS
>  GETBIT
>  SETBIT
>  SETRANGE
> It should be enough to simply parse the argument as a Long and then narrow it 
> to an int in most cases, as internally the maximum value that the argument 
> can possibly take is {{Integer.MAX_VALUE}}. For example, [the maximum number 
> of elements in a Redis set is 2^32 - 
> 1|https://redis.io/topics/data-types#sets], so the largest meaningful value 
> for the SSCAN CURSOR argument internally is {{Integer.MAX_VALUE}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)