moaxaca / async-redis

First class async & promise support for redis.
Other
168 stars 21 forks source link

Interrupted watch-ed transaction returns true instead of null #23

Open gvko opened 5 years ago

gvko commented 5 years ago

Scenario:

  1. (client 1) Run watch on a key
  2. (client 1) Set timeout of 10 sec for starting multi + modifying the key
  3. (client 2) Modify key
  4. (client 1) Exec the multi

Client 2 returns true, whereas it should return null, since the watched key has been modified from another client. I tested the same scenario with redis and it works as expected. The problem is that I have to promisify it with Bluebird.

moaxaca commented 5 years ago

I will look at this thank you for the reproducible steps. 🍻