csredis icon indicating copy to clipboard operation
csredis copied to clipboard

频繁 ZIncrBy 异常,急

Open handloong opened this issue 5 years ago • 8 comments

  1. windows服务器下正常 , linux 服务器下异常 (centos 7),windows服务器下已经IncrBy了800w次无异常,切换到linux感觉几十次就异常了

2.应用场景: 使用ZIncrBy统计PV 和接口使用量

3.错误描述: csreids 错误【10.32.44.29:6379/0】:Unexpected end of stream; expected type 'Bulk'; data = '' at CSRedis.CSRedisClient.GetAndExecute[T](RedisClientPool pool, Func2 handler, Int32 jump, Int32 errtimes) at CSRedis.CSRedisClient.ExecuteScalar[T](String key, Func3 hander) at CSRedis.CSRedisClient.ZIncrBy(String key, Object member, Decimal increment)

handloong avatar Nov 20 '20 01:11 handloong

叶老板~ 快来fix

handloong avatar Nov 20 '20 01:11 handloong

CSRedisCore 使用的哪个版本。

连接串上 tryit=3 出错重试。

2881099 avatar Nov 20 '20 01:11 2881099

https://github.com/2881099/FreeRedis

重新写了一个 redisclient,基于 redis6.0,协议处理部分比 csredis 稳定。

2881099 avatar Nov 20 '20 01:11 2881099

CSRedisCore 3.6.5

FreeRedis 可以用于生产吗

handloong avatar Nov 20 '20 01:11 handloong

https://github.com/2881099/FreeRedis

重新写了一个 redisclient,基于 redis6.0,协议处理部分比 csredis 稳定。

CSRedisCore 3.6.5

FreeRedis 可以用于生产吗

handloong avatar Nov 20 '20 01:11 handloong

可以用于生产,单元测试覆盖率比 csredis 高,只不过生产考虑不如 csredis,以后都会以 FreeRedis 为主。

2881099 avatar Nov 20 '20 01:11 2881099

如果想快速解决问题,可以试试给连接串增加 tryit=3 试试

2881099 avatar Nov 20 '20 01:11 2881099

如果想快速解决问题,可以试试给连接串增加 tryit=3 试试

好的。先试试,顺便催更叶老板的FreeRedis

handloong avatar Nov 20 '20 01:11 handloong