Replies: 1 comment
-
我把同步双写改成异步双写后就没有这个问题了,由于该消息在mq中存在,是不是因为主从同步超时,从而导致生产者有这个报错?谢谢解答。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
RocketMQ版本为4.9.1,生产者是同步发送,broker端为同步双写。在重启一个Broker主节点的时候发现在该节点刚重启完的时候出现了超时(sendDefaultImpl call timeout),生产者的超时时间设置为3s,使用mqadmin 查询该消息显示该消息已被成功投递。怀疑是刚重启完成后生产者准备往这个节点发送消息,但发送失败,此时已经判断与该节点无法连接的用时已经超过了3s,导致直接发送超时。即使是重启从节点,也有这个问题。在刚开始时会告诉我发送状态是slave not found,之后会有一瞬间的长等待,然后就报了上面这个错。
日志如下:
我想问一下这个是什么原因,有否解决方案,谢谢。
Beta Was this translation helpful? Give feedback.
All reactions