From 61538d96b6d118bd630e3d31cc761bda8f98c42f Mon Sep 17 00:00:00 2001 From: Shawn <506895667@qq.com> Date: Wed, 13 Dec 2023 09:39:15 +0800 Subject: [PATCH 1/2] chore: update eredis_cluster to 0.8.3 --- apps/emqx_redis/rebar.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/emqx_redis/rebar.config b/apps/emqx_redis/rebar.config index 4e67e0986..a681878f1 100644 --- a/apps/emqx_redis/rebar.config +++ b/apps/emqx_redis/rebar.config @@ -3,7 +3,7 @@ {erl_opts, [debug_info]}. {deps, [ %% NOTE: mind ecpool version when updating eredis_cluster version - {eredis_cluster, {git, "https://github.com/emqx/eredis_cluster", {tag, "0.8.2"}}}, + {eredis_cluster, {git, "https://github.com/emqx/eredis_cluster", {tag, "0.8.3"}}}, {emqx_connector, {path, "../../apps/emqx_connector"}}, {emqx_resource, {path, "../../apps/emqx_resource"}} ]}. From 68173976d1bcff31336eddbb1fbbc53567331d81 Mon Sep 17 00:00:00 2001 From: Shawn <506895667@qq.com> Date: Wed, 13 Dec 2023 09:48:38 +0800 Subject: [PATCH 2/2] chore: add change logs for 12158 --- changes/ce/fix-12158.en.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 changes/ce/fix-12158.en.md diff --git a/changes/ce/fix-12158.en.md b/changes/ce/fix-12158.en.md new file mode 100644 index 000000000..5460dc136 --- /dev/null +++ b/changes/ce/fix-12158.en.md @@ -0,0 +1,4 @@ +Fix the issue that the rule engine cannot connect to `upstash` Redis. + +Before the fix, after establishing a TCP connection with the Redis service, the Redis driver of EMQX used [Inline Commands](https://redis.io/docs/reference/protocol-spec/#inline-commands) to send AUTH and SELECT commands. However, the `upstash` Redis service does not support Inline Commands, which causes the rule engine to fail to connect to the `upstash` Redis service. +After the fix, the Redis driver of EMQX uses RESP (REdis Serialization Protocol) to send AUTH and SELECT commands.