frankcrc commented on issue #5174: URL: https://github.com/apache/rocketmq/issues/5174#issuecomment-1260491326
> From the code, this problem could reproduce as long as the `storeTimestamp` less than `bornTimestamp`, even if `storeTimestamp` were just 1ms behind. Sorry, it should be 2ms. In `org.apache.rocketmq.store.index.IndexFile#selectPhyOffset`, `timeRead` is in [`storeTimestamp` - 999, `storeTimestamp`], begin is `bornTimestamp` minus 1000. To resend success, `timeRead` needs to be larger or equal than begin. So ``` timeRead >= begin => storeTimestamp -999 >= bornTimestamp - 1000 => 1 >= bornTimestamp - storeTimestamp ``` -- 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]
