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

[RESP] SINTERCARD error messages are not fully consistent with the ones returned by Redis

XMLWordPrintable

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

      Returned error messages by Infinispan server aren't fully consistent with Redis:

      Not a syntax error:

      > SINTERCARD 0 myset
      (error) ERR syntax error
      

      Missing statement which value is incorrect (numkeys, LIMIT):

      > SINTERCARD a myset
      (error) ERR value is not an integer or out of range
      
      > SINTERCARD 1 myset LIMIT b
      (error) ERR value is not an integer or out of range
      
      > SINTERCARD a myset LIMIT b
      (error) ERR value is not an integer or out of range
      

      Expected error messages can be found at https://github.com/redis/redis/blob/7.2.5/tests/unit/type/set.tcl#L232C6-L248

            vrigamon@redhat.com Vittorio Rigamonti
            vrigamon@redhat.com Vittorio Rigamonti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: