zhaozhao.zz
743f5ac2ae
standalone -REDIRECT handles special case of MULTI context ( #895 )
...
In standalone mode, when a `-REDIRECT` error occurs, special handling is
required if the client is in the `MULTI` context.
We have adopted the same handling method as the cluster mode:
1. If a command in the transaction encounters a `REDIRECT` at the time
of queuing, the execution of `EXEC` will return an `EXECABORT` error (we
expect the client to redirect and discard the transaction upon receiving
a `REDIRECT`). That is:
```
MULTI ==> +OK
SET x y ==> -REDIRECT
EXEC ==> -EXECABORT
```
2. If all commands are successfully queued (i.e., `QUEUED` results are
received) but a redirect is detected during `EXEC` execution (such as a
primary-replica switch), a `REDIRECT` is returned to instruct the client
to perform a redirect. That is:
```
MULTI ==> +OK
SET x y ==> +QUEUED
failover
EXEC ==> -REDIRECT
```
---------
Signed-off-by: zhaozhao.zz <zhaozhao.zz@alibaba-inc.com>
2024-08-30 10:17:53 +08:00
..
2024-08-16 09:46:36 -04:00
2024-08-14 09:20:36 -07:00
2024-08-29 11:17:53 -04:00
2024-05-22 23:24:12 -07:00
2024-05-22 23:24:12 -07:00
2024-04-10 08:59:45 +02:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-05-22 23:24:12 -07:00
2024-06-16 21:18:20 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-23 11:52:08 -07:00
2024-08-23 11:52:08 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-20 18:54:53 +08:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-05-22 23:24:12 -07:00
2024-05-22 23:24:12 -07:00
2024-08-14 09:20:36 -07:00
2024-05-22 23:24:12 -07:00
2024-08-29 22:39:53 +08:00
2024-08-06 21:14:18 +08:00
2024-08-07 16:14:16 -07:00
2024-07-29 21:50:46 -07:00
2024-08-28 23:35:31 -07:00
2024-07-22 18:03:28 -07:00
2024-05-22 23:24:12 -07:00
2024-08-16 09:46:36 -04:00
2024-05-22 23:24:12 -07:00
2024-08-27 10:18:48 -07:00
2024-08-26 21:10:44 -07:00
2024-05-22 23:24:12 -07:00
2024-08-23 11:52:08 -07:00
2024-08-14 09:20:36 -07:00
2024-04-09 10:24:03 +02:00
2024-08-14 09:20:36 -07:00
2024-05-02 20:00:04 -07:00
2024-05-02 20:00:04 -07:00
2024-05-08 12:17:32 -07:00
2024-04-30 19:32:01 -07:00
2024-04-30 19:32:01 -07:00
2024-04-30 19:32:01 -07:00
2024-08-29 10:58:19 +08:00
2024-08-27 14:43:01 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-26 21:10:44 -07:00
2024-08-26 21:10:44 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-27 14:43:01 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-26 21:10:44 -07:00
2024-06-07 01:40:55 +02:00
2024-08-27 14:43:01 -07:00
2024-05-22 23:24:12 -07:00
2024-08-14 09:20:36 -07:00
2015-07-26 15:17:18 +02:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-27 20:44:32 -07:00
2024-08-27 20:44:32 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-26 21:10:44 -07:00
2024-07-18 19:21:45 -07:00
2024-08-26 21:10:44 -07:00
2024-08-26 21:10:44 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-05-28 09:27:51 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-06-30 11:33:10 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2021-11-16 13:12:25 +02:00
2021-11-16 13:12:25 +02:00
2021-11-16 13:12:25 +02:00
2021-11-16 13:12:25 +02:00
2024-08-26 21:10:44 -07:00
2024-08-26 21:10:44 -07:00
2024-08-26 21:10:44 -07:00
2024-08-14 09:20:36 -07:00
2024-04-05 21:15:57 -07:00
2024-08-14 09:20:36 -07:00
2024-05-22 23:24:12 -07:00
2023-05-02 17:31:32 -07:00
2020-12-23 15:52:07 +02:00
2020-12-23 15:52:07 +02:00
2024-08-29 19:20:53 +08:00
2024-08-27 19:11:09 -07:00
2024-08-14 09:20:36 -07:00
2024-08-27 14:43:01 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-06-26 09:47:59 -07:00
2024-05-22 23:24:12 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-23 11:52:08 -07:00
2024-05-22 23:24:12 -07:00
2024-08-14 09:20:36 -07:00
2024-08-21 13:11:21 +08:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-07-14 20:04:47 -07:00
2024-06-07 01:40:55 +02:00
2024-07-22 18:03:28 -07:00
2024-05-22 23:24:12 -07:00
2024-08-27 14:43:01 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-16 09:46:36 -04:00
2024-08-30 10:17:53 +08:00
2024-08-27 19:11:09 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2020-10-25 14:14:05 +02:00
2024-08-14 09:20:36 -07:00
2024-05-09 19:44:40 -07:00
2024-05-09 19:44:40 -07:00
2021-11-11 13:51:33 +02:00
2021-07-10 10:04:54 -05:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-27 16:11:33 +02:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-06-07 14:21:33 -07:00
2024-05-06 00:09:01 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2022-05-22 17:10:31 +03:00
2024-08-14 09:20:36 -07:00
2024-08-27 19:11:09 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-05-28 09:27:51 -07:00
2024-05-22 23:24:12 -07:00
2024-08-14 09:20:36 -07:00
2024-08-27 16:11:33 +02:00
2024-08-14 09:20:36 -07:00
2024-08-23 11:52:08 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2020-12-06 14:54:34 +02:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-23 16:22:30 +08:00
2024-07-10 13:53:52 +02:00
2024-04-17 14:38:21 +02:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-29 11:17:53 -04:00
2024-08-29 11:17:53 -04:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00