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

[RESP] SMOVE doesn't detect WRONGTYPE when member isn't present

XMLWordPrintable

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

      SMOVE does not detect WRONGTYPE operation when trying to move from set to a string value until the value is member of the set. (Which suggest that it first attempts to the value and only then checks whether the operation is permitted but it should be other way around)

      127.0.0.1:11222> SET x 10
      OK
      127.0.0.1:11222> sadd myset 2 3 4
      (integer) 3
      127.0.0.1:11222> smove myset x foo
      (integer) 0
      127.0.0.1:11222> sadd myset foo
      (integer) 1
      127.0.0.1:11222> smove myset x foo
      (error) WRONGTYPE Operation against a key holding the wrong kind of value
      

              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: