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

RESP GETSET changes non-string entry

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 15.0.3.Final
    • 15.0.1.Final
    • RESP
    • None

      when acting on non-string GETSET returns error but set entry to string

      expected:

           127.0.0.1:6379> lpush list lvalue
           (integer) 1
           127.0.0.1:6379> getset list ciao
           (error) WRONGTYPE Operation against a key holding the wrong kind of value
           127.0.0.1:6379> get list
           (error) WRONGTYPE Operation against a key holding the wrong kind of value

      actual:

           127.0.0.1:6379> lpush list lvalue
           (integer) 1
           127.0.0.1:6379> getset list ciao
           (error) ERRWRONGTYPE Operation against a key holding the wrong kind of value
           127.0.0.1:6379> get list
           "ciao"

              vrigamon@redhat.com Vittorio Rigamonti
              vrigamon@redhat.com Vittorio Rigamonti
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: