2881099 / csredis

.NET Core or .NET Framework 4.0+ client for Redis and Redis Sentinel (2.8) and Cluster. Includes both synchronous and asynchronous clients.
MIT License
2.01k stars 414 forks source link

哨兵模式,主节点断网后过段时间重新联网,订阅一直报错 #431

Open sunnkode opened 2 years ago

sunnkode commented 2 years ago

大佬帮忙看看下面的情况是咋回事

redis部署的是三节点哨兵:172.10.0.242、172.10.0.243、172.10.0.244(操作系统是centos 7.9) 断网前:243是主节点,242和244是从节点 断网后:242变成主节点

测试代码有10个订阅,如下: image

使用ifconfig ens192 down 断开主节点243的网络,待csredis哨兵主节点切换成242后,使用ifconfig ens192 up 使243重新联网, 此时242变成主节点,截图如下: image

然后订阅就一直报错,循环输出下图红色框选的错误信息 image image

报错堆栈信息如下: image

2881099 commented 2 years ago

试试用 FreeRedis

sunnkode commented 2 years ago

试试用 FreeRedis

大佬,有临时的解决方案吗,我们生产环境在用,暂时还没法替换成FreeRedis