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 2020/06/02 11:20:11 UTC

[GitHub] [rocketmq] zhgdbut opened a new issue #2066: rocketmq return SEND_OK,but the message is lose

zhgdbut opened a new issue #2066:
URL: https://github.com/apache/rocketmq/issues/2066


   use this method :
   this.sendDefaultImpl(msg, CommunicationMode.SYNC, null, timeout); 
   in org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl#sendDefaultImpl
   
   I had send message success because it returned SEND_OK and msgId, but i can not found the message .


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

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



[GitHub] [rocketmq] lizhanhui commented on issue #2066: rocketmq return SEND_OK,but the message is lose

Posted by GitBox <gi...@apache.org>.
lizhanhui commented on issue #2066:
URL: https://github.com/apache/rocketmq/issues/2066#issuecomment-637964667


   zhgdbut,
   
   Here is the checklist, which might be helpful to you.
   
   1. RocketMQ supports synchronous disk flush and asynchronous disk flush
   strategies. If you configured to use the latter without replication, in
   case of a power outage/OS crash, it has chances, though very unlikely, to
   lose one or a few messages as you configured those broker servers to ack
   clients before flushing data to disk.
   2.  When querying messages, RocketMQ internally queries consume queues,
   which are built out of commit log asynchronously. If for some reason, the
   building consume-queue process lags behind, you may find the sent message
   unavailable for a while. But your message will appear once the building
   catches up.
    Check the store.log to see if this is the case.
   3. If your broker runs out of disk, it automatically deletes the
   earliest data in order to keep serving, even if these old ones are never
   consumed.
   
   Either case mentioned above may lead you to the conclusion that your
   message is 'lost'.
   
   Zhanhui Li
   
   
   On Tue, Jun 2, 2020 at 11:12 PM zhgdbut <no...@github.com> wrote:
   
   > I had print return result , and use msgId query in the mqadmin, but
   > nothing found!
   > This kind of thing only happens once or twice。
   >
   > —
   > You are receiving this because you are subscribed to this thread.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/rocketmq/issues/2066#issuecomment-637606420>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AAE4WG4BBPHTBMWOKXV7UQLRUUJFJANCNFSM4NQUIAOQ>
   > .
   >
   


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

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



[GitHub] [rocketmq] vongosling closed issue #2066: rocketmq return SEND_OK,but the message is lose

Posted by GitBox <gi...@apache.org>.
vongosling closed issue #2066:
URL: https://github.com/apache/rocketmq/issues/2066


   


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

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



[GitHub] [rocketmq] zhgdbut commented on issue #2066: rocketmq return SEND_OK,but the message is lose

Posted by GitBox <gi...@apache.org>.
zhgdbut commented on issue #2066:
URL: https://github.com/apache/rocketmq/issues/2066#issuecomment-637606420


   I had print return result , and use msgId query in the mqadmin, but nothing found! 
   This kind of thing only happens once or twice。
   


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

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



[GitHub] [rocketmq] lebron374 commented on issue #2066: rocketmq return SEND_OK,but the message is lose

Posted by GitBox <gi...@apache.org>.
lebron374 commented on issue #2066:
URL: https://github.com/apache/rocketmq/issues/2066#issuecomment-637556807


   you can print the return result and print messageKey,then you can use mqadmin to query the message to check。


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

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