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 2021/12/20 12:21:13 UTC

[GitHub] [rocketmq] MatrixHB commented on issue #3661: Why only the last few files are synchronized when the master-slave synchronization gap is large

MatrixHB commented on issue #3661:
URL: https://github.com/apache/rocketmq/issues/3661#issuecomment-997875813


   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 ??


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org