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

RESP GETSET changes non-string entry

    XMLWordPrintable

Details

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

    Description

      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"

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: