Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-7245

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

XMLWordPrintable

      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
              rhn-support-pdrobek Pavel Drobek
              Pavel Drobek Pavel Drobek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: