async-redis icon indicating copy to clipboard operation
async-redis copied to clipboard

Interrupted watch-ed transaction returns true instead of null

Open gvko opened this issue 6 years ago • 1 comments

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.

gvko avatar Jun 21 '19 12:06 gvko

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

moaxaca avatar Jun 21 '19 19:06 moaxaca