Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

间隙性客户端pika断开 #1367

Closed
clivhua opened this issue Apr 6, 2023 · 7 comments · Fixed by #1390
Closed

间隙性客户端pika断开 #1367

clivhua opened this issue Apr 6, 2023 · 7 comments · Fixed by #1390
Assignees

Comments

@clivhua
Copy link

clivhua commented Apr 6, 2023

3.4后续版本概率性断联 包含unstable 具体现象就是 刚启动几分钟pika 我的应用读写没问题, 然后就出现连接不上 重启pika 或者不管它 又能恢复正常 这样会循环出现 我用redis desktop manager 连接pika现象也一样的 ,当我应用 连不上 用 rdm 也是连不上
用回3.3.6 几个小时了没出现这种情况 线上服务器3.41 也出现这种情况只是概率更小 不知道是不是硬件更好的原因

@wanghenshui wanghenshui self-assigned this Apr 6, 2023
@wanghenshui
Copy link
Collaborator

初步分析是3.4以后的pink库引入的问题。需要分析commit

@clivhua
Copy link
Author

clivhua commented Apr 6, 2023

redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream.
at redis.clients.jedis.util.RedisInputStream.ensureFill(RedisInputStream.java:205)
at redis.clients.jedis.util.RedisInputStream.readByte(RedisInputStream.java:46)
at redis.clients.jedis.Protocol.process(Protocol.java:126)
at redis.clients.jedis.Protocol.read(Protocol.java:192)
at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:316)
at redis.clients.jedis.Connection.getOne(Connection.java:298)
at redis.clients.jedis.Connection.executeCommand(Connection.java:123)
at redis.clients.jedis.Jedis.get(Jedis.java:4912

@clivhua
Copy link
Author

clivhua commented Apr 6, 2023

用redis-cli 执行 info
Error: Server closed the connection
再执行 可能又是正常的。
多执行几次 就会出现上面错误

@wanghenshui
Copy link
Collaborator

@AlexStocks
Copy link
Contributor

AlexStocks commented Apr 11, 2023

https://github.com/OpenAtomFoundation/pika/pull/978/files#diff-9630a8ae04ec848bf72f13f4c24f8cf48e457fa74535cd3cf49c583e06a555de

3.4.0 proxy引入。需要回滚

第一,这个问题可以稳定复现。
第二,你说的这部分代码目前已经不存在,但是问题仍然存在,所以跟 proxy 这部分代码无关。

@wanghenshui
Copy link
Collaborator

https://github.com/OpenAtomFoundation/pika/pull/978/files#diff-9630a8ae04ec848bf72f13f4c24f8cf48e457fa74535cd3cf49c583e06a555de
3.4.0 proxy引入。需要回滚

第一,这个问题可以稳定复现。 第二,你说的这部分代码目前已经不存在,但是问题仍然存在,所以跟 proxy 这部分代码无关。

和pink改动有关,proxy代码我删了,但pink的代码我没回滚

@AlexStocks
Copy link
Contributor

Mac 上 Pika 闪断 client 连接问题:
image
我刚把环境准备好,wireshark抓包,序号 466 这个包这里很奇怪,不到一百毫秒,server端就把客户端的链接关闭掉了

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants