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-unsubscr...@rocketmq.apache.org

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

Reply via email to