Cczzzz commented on issue #3747:
URL: https://github.com/apache/rocketmq/issues/3747#issuecomment-1021798216


   > 例如对于 raft 的 leader transfer oldLeader 必须等待 newLeader 追上自己, 才能实现 leader 
的切换, 否则的日志会出现丢失的情况 例如: oldLeader: 1 2 3 4 5 6 newLeader: 1 2 3 4 如果直接实现 
NewLeader 切换, 那么 5 6 两条消息就会丢失, 即使其他的 follower 包含 5 和 6 的消息, 也会被迫和 newLeader 保持一致
   
   并不是raft 日志,raft 
日志由raft协议来保障了,我提出的是raft选举结束后到上报nameserver之间的一个环节,等待逻辑队列构建(consmerqueue )的延迟变成0


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to