kengan opened a new issue #3866:
URL: https://github.com/apache/rocketmq/issues/3866


   I setup rocketmq with single node
   I use 2 thread to produce message, each thread send 10 messages 
   on the other hand, I use a thread to consume the message and I found that I 
can not get all message and always lost some message
   
   
   I use  DefaultMQProducer  to send message as following:
    private DefaultMQProducer producer=
    SendResult sendResult =producer.send(mqMessage, 60000);
   
   
   I use  the following code to comsume the messasge:
   
    consumer.setMessageModel(MessageModel.CLUSTERING);
    consumer.setConsumeFromWhere(ConsumeFromWhere.CONSUME_FROM_LAST_OFFSET);
    consumer.setMaxReconsumeTimes(3);
    consumer.setConsumeMessageBatchMaxSize(30);
   
    consumer.registerMessageListener(new MessageListenerConcurrently() {
                   @Override
                   public ConsumeConcurrentlyStatus 
consumeMessage(List<MessageExt> messagelist, ConsumeConcurrentlyContext 
consumeConcurrentlyContext) {
                         //do some job
   
                   }
               });
   
   Can you help me, Thank you very much
   
   


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