Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-16452

[RESP] *INCRBY[FLOAT] calls leading to NaN should result in error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 15.1.0.Dev04, 15.0.9.Final
    • None
    • RESP
    • None

      Infinispan:

      127.0.0.1:11222>  zincrby myzset +inf abc
      "Infinity"
      127.0.0.1:11222>  zincrby myzset -inf abc
      "NaN"
      

      Redis

      127.0.0.1:6379>  zincrby myzset +inf abc
      (double) inf
      127.0.0.1:6379>  zincrby myzset -inf abc
      (error) ERR resulting score is not a number (NaN)
      

      Test: https://github.com/redis/redis/blob/7.2.5/tests/unit/type/zset.tcl#L306-L309

      This affects all incrby commands that accept a float value. That includes: `INCRBYFLOAT`, `ZINCRBY`, and `HINCRBYFLOAT` commands.

            rh-ee-jbolina Jose Bolina
            rh-ee-jbolina Jose Bolina
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: