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

[RESP] WATCH within TX results in EXECABORT

XMLWordPrintable

      Infinispan correctly throws out that WATCH within MULTI isn't allowed but upon running an EXEC it throws an EXECABORT abort ignoring whole transaction whilst Redis just disregards the WATCH command.

      Infinispan:

      127.0.0.1:11222(TX)> set u p
      QUEUED
      127.0.0.1:11222(TX)> watch x
      (error) ERR WATCH inside MULTI is not allowed
      127.0.0.1:11222(TX)> set y z
      QUEUED
      127.0.0.1:11222(TX)> exec
      (error) EXECABORT Transaction discarded because of previous errors.
      

      Redis:

      127.0.0.1:6379> multi
      OK
      127.0.0.1:6379(TX)> set u s
      QUEUED
      127.0.0.1:6379(TX)> watch x
      (error) ERR WATCH inside MULTI is not allowed
      127.0.0.1:6379(TX)> set y z
      QUEUED
      127.0.0.1:6379(TX)> exec
      1) OK
      2) OK
      

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

                Created:
                Updated:
                Resolved: