You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/03/18 03:36:01 UTC

[GitHub] [rocketmq] beijixiongzzj opened a new issue #1094: HA机制,master长时间宕机重启后产生重复消费

beijixiongzzj opened a new issue #1094: HA机制,master长时间宕机重启后产生重复消费
URL: https://github.com/apache/rocketmq/issues/1094
 
 
   master停机5分钟期间slave开始承接正常业务,客户端正常消费。
   5分钟后master重启,slave的syncAll()机制,从master复制了一份5分钟前的消费偏移量数据,覆盖掉了最新的偏移量信息。
   导致client消费到的重复的消息。
   
   希望提供官方的master重启机制。
   建议后期添加节点内broker同步数据以offset最大为主,和master与slave反向同步的机制。
   或者在重启服务前,节点要完全下线,slave下线不提供服务,master重启前,从slave最大偏移量线下拷贝consumeOffset.json文件。

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services