panzhi33 commented on issue #3661:
URL: https://github.com/apache/rocketmq/issues/3661#issuecomment-998534528
> 可以按如下方法复现只同步最新commitlog的情况
1,先不启动slave,在一个全新的master上创建topic生产一段时间,让主从差距有个上百G,然后启动slave。
> […](#)
> ------------------ 原始邮件 ------------------ 发件人:
"apache/rocketmq" ***@***.***>; 发送时间: 2021年12月20日(星期一) 晚上8:21
***@***.***>; ***@***.******@***.***>; 主题: Re: [apache/rocketmq] Why
only the last few files are synchronized when the master-slave synchronization
gap is large (Issue #3661) look at
org.apache.rocketmq.store.ha.HAService.HAClient#dispatchReadRequest long
slavePhyOffset = HAService.this.defaultMessageStore.getMaxPhyOffset(); if
(slavePhyOffset != 0) { if (slavePhyOffset != masterPhyOffset) {
log.error("master pushed offset not equal the max phy offset in slave, SLAVE: "
+ slavePhyOffset + " MASTER: " + masterPhyOffset); return false; } } this
ensures the slave offset should be continuous. Thesituation you describe is
unlikely to happen, can you give more details ?? — Reply to this email
directly, view it on GitHub, or unsubscribe. Triage notifications on the go
with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID:
***@***.***>
这个是预期内的,如果之前没有同步过,那么就会从master的最新也就是最大位点开始。
--
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]