Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-7370

[RESP] SRANDMEMBER incorrect error message

XMLWordPrintable

      SRANDMEMBER throws an error message that size must be non-negative on out of range value. Which is not correct as it normally accepts negative values:

      Infinispan:

      127.0.0.1:11222> sadd myset a
      (integer) 1
      127.0.0.1:11222> SRANDMEMBER myset -9223372036854775808
      (error) ERR size must be non-negative
      127.0.0.1:11222> SRANDMEMBER myset -1
      1) "a"
      

      Redis:

      127.0.0.1:6379> sadd myset a
      (integer) 1
      127.0.0.1:6379> SRANDMEMBER myset -9223372036854775808
      (error) ERR value is out of range, value must between -9223372036854775807 and 9223372036854775807
      127.0.0.1:6379> SRANDMEMBER myset -1
      1) "a"
      

              vrigamon@redhat.com Vittorio Rigamonti
              rhn-support-pdrobek Pavel Drobek
              Pavel Drobek Pavel Drobek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: