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

[RESP] WATCH prevents any operations against watched list

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      WATCHing list key prevents any manipulation with the list resulting in WRONGTYPE operation. WATCH should prevent EXEC if the key was modified not prevent the key modification.

      Infinispan:

      27.0.0.1:11222> lpush foo bar
      (integer) 1
      127.0.0.1:11222> watch foo
      OK
      127.0.0.1:11222> lpush foo bar2
      (error) WRONGTYPE Operation against a key holding the wrong kind of value
      

      Redis

      127.0.0.1:6379> lpush foo bar
      (integer) 1
      127.0.0.1:6379> watch foo
      OK
      127.0.0.1:6379> lpush foo bar2
      (integer) 2
      

              Unassigned Unassigned
              rhn-support-pdrobek Pavel Drobek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: