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

[RESP] MSETNX behaves inconsistently

XMLWordPrintable

      Setting up a non-existing key using MSETNX twice using a single command should result in using the later value. From some reason when the key is *xx

      {t}* the later is used but with key being *x1{t}

      * the former is used.

      Infinispan:

      127.0.0.1:11222> MSETNX x1{t} xxx x1{t} yyy
      (integer) 1
      127.0.0.1:11222> GET x1{t}
      "xxx"
      127.0.0.1:11222> MSETNX xx{t} xxx xx{t} yyy
      (integer) 1
      127.0.0.1:11222> GET xx{t}
      "yyy"
      

      Redis:

      127.0.0.1:6379> MSETNX x1{t} xxx x1{t} yyy
      (integer) 1
      127.0.0.1:6379> GET x1{t}
      "yyy"
      127.0.0.1:6379> MSETNX xx{t} xxx xx{t} yyy
      (integer) 1
      127.0.0.1:6379> GET xx{t}
      "yyy"
      

              vrigamon@redhat.com Vittorio Rigamonti
              rhn-support-pdrobek Pavel Drobek
              Pavel Drobek Pavel Drobek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: