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

[RESP] [REGRESSION] ZINCRBY with infinite score increment should be allowed

XMLWordPrintable

      Executing ZINCRBY with infinite score against existing and non-existing values should be allowed. The error message should pop up only in case the resulting score would be NaN (increments by infinity against scores with opposite infinite score)

      Regression:

      127.0.0.1:11222> exists ztmp
      (integer) 0
      127.0.0.1:11222> zincrby ztmp +inf x
      (error) ERR increment would produce NaN or Infinity
      

      Redis:

      127.0.0.1:6379> exists ztmp
      (integer) 0
      127.0.0.1:6379> zincrby ztmp +inf x
      "inf"
      127.0.0.1:6379> zincrby ztmp -inf x
      (error) ERR resulting score is not a number (NaN)
      

            rh-ee-jbolina Jose Bolina
            rhn-support-pdrobek Pavel Drobek
            Pavel Drobek Pavel Drobek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: