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

[RESP] WATCHed key should invalidate TX upon expiration

XMLWordPrintable

    • False
    • None
    • False

      Expired WATCHed key should invalidate multi/exec

      Infinispan:

      127.0.0.1:11222> flushall
      OK
      127.0.0.1:11222> set x foo
      OK
      127.0.0.1:11222> expire x 10
      (integer) 1
      127.0.0.1:11222> watch x
      OK
      127.0.0.1:11222> dbsize
      (integer) 1
      ...
      127.0.0.1:11222> dbsize
      (integer) 0
      127.0.0.1:11222> multi
      OK
      127.0.0.1:11222(TX)> ping
      QUEUED
      127.0.0.1:11222(TX)> exec
      1) "PONG"
      

      Redis:

      127.0.0.1:6379> flushall
      OK
      127.0.0.1:6379> set x foo
      OK
      127.0.0.1:6379> expire x 10
      (integer) 1
      127.0.0.1:6379> watch x
      OK
      127.0.0.1:6379> dbsize
      (integer) 1
      ...
      127.0.0.1:6379> dbsize
      (integer) 0
      127.0.0.1:6379> multi
      OK
      127.0.0.1:6379(TX)> ping
      QUEUED
      127.0.0.1:6379(TX)> exec
      (nil)
      

              rh-ee-jbolina Jose Bolina
              rhn-support-pdrobek Pavel Drobek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: