You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "sunwuxiang (via GitHub)" <gi...@apache.org> on 2024/11/28 07:18:52 UTC
[I] [Bug] 一次请求打到坏的broker把超时时间耗光,后两次打到正常的broker也因过期时间为0,无法成功 [rocketmq]
sunwuxiang opened a new issue, #8997:
URL: https://github.com/apache/rocketmq/issues/8997
### Before Creating the Bug Report
- [X] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions).
- [X] I have searched the [GitHub Issues](https://github.com/apache/rocketmq/issues) and [GitHub Discussions](https://github.com/apache/rocketmq/discussions) of this repository and believe that this is not a duplicate.
- [X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
### Runtime platform environment
linux and windows
### RocketMQ version
4.7.1
### JDK Version
jdk11
### Describe the Bug
<img width="580" alt="b2489c47defcd7426ba819008233748" src="https://github.com/user-attachments/assets/f9956b46-f3c0-45e0-8969-110e50bbcf16">
broker-f 突然内存持续上涨,导致服务假死,也未从nameserver摘掉,导致客户端连接超时,虽然mq有三次重试,通过上图发现后两次请求到了正常的broker,应该成功,结果还是失败了
<img width="588" alt="7a5b9cf09a1974768c6bf495e0f801c" src="https://github.com/user-attachments/assets/6bc4a795-b5de-4141-8300-ec781581dee6">
### Steps to Reproduce
现在我们无法复现broker内存上涨假死的情况,可以制造一个broker访问不通使得连接把耗时耗光
### What Did You Expect to See?
期望的是,单个请求超时和整体三次重试的超时分开配置
### What Did You See Instead?
期望的是,单个请求超时和整体三次重试的超时分开配置
### Additional Context
无
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] 一次请求打到坏的broker把超时时间耗光,后两次打到正常的broker也因过期时间为0,无法成功 [rocketmq]
Posted by "sunwuxiang (via GitHub)" <gi...@apache.org>.
sunwuxiang commented on issue #8997:
URL: https://github.com/apache/rocketmq/issues/8997#issuecomment-2510519322
8169这个是异步,这是两个事:
1、同步的重试次数我觉得是有必要的,对有问题的节点,就是要快速失败,比如我最大2秒超时,我可以把一次请求的超时设置成1秒,这样我设置重试次数是2次,那么最大就是2秒超时。否则就解决不了broker挂掉的问题
2、异步现在虽然有重试次数,但是好像没用,现在只能在回调里做重试逻辑
另外我也发现同步有1%的概率,同步请求达到了1秒以上的处理时间,不知道rocketmq为什么同步发送会这么慢
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] 一次请求打到坏的broker把超时时间耗光,后两次打到正常的broker也因过期时间为0,无法成功 [rocketmq]
Posted by "3424672656 (via GitHub)" <gi...@apache.org>.
3424672656 commented on issue #8997:
URL: https://github.com/apache/rocketmq/issues/8997#issuecomment-2505625843
ISSUE #8169 可以看下这个,建议额外做重试逻辑,如果分离的话对个人认为客户端感知延迟较大
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] 一次请求打到坏的broker把超时时间耗光,后两次打到正常的broker也因过期时间为0,无法成功 [rocketmq]
Posted by "yx9o (via GitHub)" <gi...@apache.org>.
yx9o commented on issue #8997:
URL: https://github.com/apache/rocketmq/issues/8997#issuecomment-2513379791
1、是不是设置一个单次请求的超时时间和重试次数就行,不用设置总的。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] 一次请求打到坏的broker把超时时间耗光,后两次打到正常的broker也因过期时间为0,无法成功 [rocketmq]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed issue #8997: [Bug] 一次请求打到坏的broker把超时时间耗光,后两次打到正常的broker也因过期时间为0,无法成功
URL: https://github.com/apache/rocketmq/issues/8997
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org