nihohit
9f512017aa
Update request/response policies. ( #12417 )
...
changing the response and request policy of a few commands,
see https://redis.io/docs/reference/command-tips
1. RANDOMKEY used to have no response policy, which means
that when sent to multiple shards, the responses should be aggregated.
this normally applies to commands that return arrays, but since RANDOMKEY
replies with a simple string, it actually requires a SPECIAL response policy
(for the client to select just one)
2. SCAN used to have no response policy, but although the key names part of
the response can be aggregated, the cursor part certainly can't.
3. MSETNX had a request policy of MULTI_SHARD and response policy of AGG_MIN,
but in fact the contract with MSETNX is that when one key exists, it returns 0
and doesn't set any key, routing it to multiple shards would mean that if one failed
and another succeeded, it's atomicity is broken and it's impossible to return a valid
response to the caller.
Co-authored-by: Shachar Langbeheim <shachlan@amazon.com>
Co-authored-by: Oran Agra <oran@redislabs.com>
2023-07-25 10:21:23 +03:00
..
2023-07-25 10:21:23 +03:00
2022-04-05 17:08:27 +03:00
2023-06-19 16:31:18 +03:00
2023-01-20 13:18:52 -08:00
2022-11-23 17:39:08 +02:00
2022-06-07 14:47:09 +03:00
2023-04-23 17:02:09 +03:00
2023-04-17 21:05:36 +03:00
2023-04-17 21:05:36 +03:00
2023-05-02 17:31:32 -07:00
2022-08-03 19:38:08 +03:00
2023-06-21 17:57:11 +03:00
2023-03-14 20:26:21 +02:00
2022-10-02 15:15:14 +03:00
2023-06-22 23:15:16 +03:00
2023-03-16 14:04:31 +02:00
2023-03-16 14:04:31 +02:00
2022-11-12 20:35:34 +02:00
2023-03-30 19:03:56 +03:00
2023-03-30 19:03:56 +03:00
2023-06-29 19:32:01 +03:00
2023-05-02 17:31:32 -07:00
2023-07-15 20:31:42 -07:00
2023-07-05 17:46:23 -07:00
2023-03-30 19:03:56 +03:00
2023-07-25 10:21:23 +03:00
2023-07-16 17:04:15 -05:00
2023-06-27 10:21:58 +03:00
2023-04-18 09:53:51 +03:00
2023-05-02 17:31:32 -07:00
2023-06-26 07:43:38 -07:00
2023-07-06 08:17:25 +03:00
2023-07-01 07:35:35 -07:00
2022-02-06 20:13:34 -08:00
2023-05-02 17:31:32 -07:00
2023-06-16 19:13:07 +03:00
2023-05-24 16:27:44 +03:00
2022-07-18 10:56:26 +03:00
2023-05-02 17:31:32 -07:00
2023-05-24 09:40:11 +03:00
2023-02-20 10:23:25 +02:00
2023-04-18 09:53:51 +03:00
2023-05-02 17:31:32 -07:00
2023-05-02 17:31:32 -07:00
2023-05-02 17:31:32 -07:00
2023-06-20 15:14:44 +03:00
2022-12-05 15:45:04 +02:00
2022-04-04 15:35:49 +03:00
2022-02-08 16:49:47 +02:00
2023-03-16 08:50:32 +02:00
2022-11-09 19:50:07 +02:00
2022-11-09 19:50:07 +02:00
2023-05-12 20:13:15 +03:00
2023-05-12 20:13:15 +03:00
2023-05-02 17:31:32 -07:00
2023-04-10 20:38:40 +03:00
2023-05-02 17:31:32 -07:00
2022-12-06 11:25:51 +02:00
2022-03-09 13:58:23 +02:00
2023-04-20 23:28:44 +03:00
2023-06-27 11:54:17 +03:00
2022-08-23 12:37:56 +03:00
2023-06-27 16:43:46 +03:00
2023-05-02 17:31:32 -07:00
2023-05-02 17:31:32 -07:00
2023-02-28 12:02:55 +02:00
2023-06-20 20:41:41 +03:00
2022-04-17 15:43:22 +03:00
2023-06-20 15:14:44 +03:00
2022-04-04 18:38:18 +03:00
2023-06-19 16:31:18 +03:00
2022-11-16 20:29:46 +02:00
2022-11-16 20:29:46 +02:00
2023-05-02 17:31:32 -07:00
2023-05-02 17:31:32 -07:00
2022-10-02 13:56:45 +03:00
2023-06-20 15:14:44 +03:00
2023-04-09 12:07:32 +03:00
2023-07-05 10:27:14 +03:00
2023-04-17 21:05:36 +03:00
2023-04-17 21:05:36 +03:00
2023-07-20 15:31:06 -07:00
2022-06-19 08:42:12 +03:00
2023-06-20 09:03:52 +03:00
2022-08-23 12:37:56 +03:00
2023-05-18 09:25:56 +03:00
2023-03-15 11:05:42 +02:00
2022-04-10 09:29:50 +03:00
2023-02-12 09:23:29 +02:00
2023-02-12 09:23:29 +02:00
2023-03-15 11:05:42 +02:00
2022-04-27 00:37:40 +03:00
2023-06-08 15:13:53 +03:00
2023-05-02 17:31:32 -07:00
2023-06-20 15:14:44 +03:00
2023-01-31 17:26:35 +02:00
2023-05-24 09:32:39 +03:00
2023-06-25 14:21:03 +03:00
2023-06-27 16:43:46 +03:00
2022-11-24 15:27:16 +02:00
2023-04-18 09:53:51 +03:00
2023-04-25 10:17:21 +03:00
2023-05-28 08:35:27 +03:00
2023-01-16 13:49:30 +02:00
2023-03-09 12:05:50 +02:00
2022-11-30 14:21:31 +02:00
2022-07-18 10:56:26 +03:00
2023-01-22 16:32:20 +02:00
2022-05-22 17:10:31 +03:00
2023-05-22 15:48:32 +03:00
2023-06-22 08:10:42 -07:00
2023-06-16 08:14:11 -07:00
2023-06-22 08:10:42 -07:00
2023-06-15 10:07:47 +03:00
2023-07-02 20:38:30 +03:00
2023-02-16 10:50:58 +02:00
2023-01-08 01:02:48 -08:00
2023-05-28 08:35:27 +03:00
2023-03-12 17:50:44 +02:00
2023-05-28 08:35:27 +03:00
2023-02-28 15:15:26 +02:00
2023-02-12 09:23:29 +02:00
2023-05-02 17:31:32 -07:00
2023-05-02 17:31:32 -07:00
2023-05-28 08:44:28 +03:00