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

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


Reply via email to