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 2022/10/09 01:15:10 UTC

[GitHub] [rocketmq] frankcrc commented on issue #5174: index timeDiff precision missing may cause resend failed

frankcrc commented on issue #5174:
URL: https://github.com/apache/rocketmq/issues/5174#issuecomment-1272426200

   Sorry, I confused timestamp in `UNIQ_KEY` with `bornTimestamp`. 
   
   In my environment, mq's version of broker and client are differnect. so `viewMessage` might encounter exception, I means `org.apache.rocketmq.common.message.MessageDecoder#decodeMessageId`.  This commit may be related, [c7c9601d](https://github.com/apache/rocketmq/commit/c7c9601d36d0179ae69592e541764b04130cf790#diff-da0b74e72334fbe4c8f96d48e86981af939efb20fb76554f93ae6eb9a38982b7L60-L64).
   
   Then,
   1.`org.apache.rocketmq.client.impl.MQAdminImpl#viewMessage` will throw "query message by id finished, but no message" exception, or
   2.`org.apache.rocketmq.tools.admin.DefaultMQAdminExtImpl#viewMessage(java.lang.String, java.lang.String)` will call `queryMessageByUniqKey`. In `queryMessageByUniqKey`, you can see 
   ```
   // which is begin
   // my misunderstood bornTimestamp - 1000
   MessageClientIDSetter.getNearlyTimeFromID(uniqKey).getTime() - 1000
   ```


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