summaryrefslogtreecommitdiff
path: root/tests/unit/expire.tcl
diff options
context:
space:
mode:
authorOran Agra <oran@redislabs.com>2020-03-23 20:13:52 +0200
committerOran Agra <oran@redislabs.com>2020-03-23 20:45:32 +0200
commitec007559ff703d27916f54ad0a41d154a88d9ac4 (patch)
tree8e3b891b592322fcdd568b79bb0b56138ab88229 /tests/unit/expire.tcl
parentc80d81c80aa4421f48d9e3fd005ca82546d82239 (diff)
downloadredis-ec007559ff703d27916f54ad0a41d154a88d9ac4.tar.gz
MULTI/EXEC during LUA script timeout are messed up
Redis refusing to run MULTI or EXEC during script timeout may cause partial transactions to run. 1) if the client sends MULTI+commands+EXEC in pipeline without waiting for response, but these arrive to the shards partially while there's a busy script, and partially after it eventually finishes: we'll end up running only part of the transaction (since multi was ignored, and exec would fail). 2) similar to the above if EXEC arrives during busy script, it'll be ignored and the client state remains in a transaction. the 3rd test which i added for a case where MULTI and EXEC are ok, and only the body arrives during busy script was already handled correctly since processCommand calls flagTransaction
Diffstat (limited to 'tests/unit/expire.tcl')
0 files changed, 0 insertions, 0 deletions