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

[RESP] [REGRESSION] ZADD INCR LT/GT with inf

XMLWordPrintable

      Increments and decrements via `ZADD INCR LT/GT ...` to infinitely scored members should be ignored and return null:

      Note: This behavior is a regression to 8.5.1 and Infinispan now throws an error instead properly handling the request.
      Test: https://github.com/redis/redis/blob/7.2.5/tests/unit/type/zset.tcl#L262-L283

      Infinispan:

      127.0.0.1:11222> zadd ztmp +inf x -inf y
      (integer) 2
      127.0.0.1:11222> zadd ztmp lt incr 1 x
      (error) ERR increment would produce NaN or Infinity
      

      Redis:

      127.0.0.1:6379> zadd ztmp +inf x -inf y
      (integer) 2
      127.0.0.1:6379> zadd ztmp lt incr 1 x
      (nil)
      

              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:
                Resolved: