crazywen edited a comment on issue #2476:
URL: https://github.com/apache/rocketmq/issues/2476#issuecomment-739609106


   通过复盘故障与查阅源码,对于主从同步的机制,似乎目前有这么一种场景,会导致主从无法继续同步下去。
   
业务正常在跑,主从同步正常复制中,由于异常数据或者其它原因,主节点持续写入大量数据,同时磁盘空间不够,触发水位线,进行自主清理,如果从节点同步信息偏移量跟不上被删除的量,会导致从节点此时的同步,会被永远卡在找不到要同步的
 MappedField 上。
   主节点不断输出以下信息:
   Offset not matched. Request offset: {}, firstOffset: {}, lastOffset: {}, 
mappedFileSize: {}, mappedFiles count: {}
   这种情况,是否应该需要一种反馈机制反馈给从节点,由从节点调整拉取偏移量,重新同步。


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


Reply via email to