WATCH during MULTI shouldn't fail transaction #3009
Labels
for: team-attention
An issue we need to discuss as a team to make progress
status: waiting-for-triage
type: bug
A general bug
Bug Report
Redis returns an error if a WATCH command is submitted inside a MULTI. However, this command is silently discarded. The WATCH command does not count in the final result list during the EXEC phase. For example:
Observe that the WATCH command is not included in the result list.
Current Behavior
Lettuce includes the failed WATCH command in the output list. Additionally, since the command is dropped, the response list has fewer responses than the command list in
MultiOutput
and some commands might never be completed.Input Code
For example, adding the following test to the
TransactionCommandIntegrationTests
class:Input Code
Produces:
Expected behavior/code
The test should complete successfully with all 3 set operations returning an
OK
response.Environment
Additional context
I think WATCH is the only command that the MULTI will drop. The solution will require something specific to WATCH.
The text was updated successfully, but these errors were encountered: