Skip to content

Commit

Permalink
explain execabort error
Browse files Browse the repository at this point in the history
Signed-off-by: zhaozhao.zz <[email protected]>
  • Loading branch information
soloestoy committed Dec 11, 2024
1 parent 9d98ee7 commit a1243c8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions topics/transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,25 @@ failover
EXEC ==> -REDIRECT
```

Before the `EXEC` command is processed, if a command accesses data that does not belong to the current node,
a `-MOVED` or `-REDIRECT` error will be returned immediately, and the `EXEC` command will receive an `EXECABORT` error.

For cluster mode:

```
MULTI ==> +OK
SET x y ==> -MOVED
EXEC ==> -EXECABORT
```

For standalone mode:

```
MULTI ==> +OK
SET x y ==> -REDIRECT
EXEC ==> -EXECABORT
```

## What about rollbacks?

Valkey does not support rollbacks of transactions since supporting rollbacks
Expand Down

0 comments on commit a1243c8

Please sign in to comment.