yuz10 opened a new issue, #450:
URL: https://github.com/apache/rocketmq-client-cpp/issues/450

   
   
   1. Please describe the issue you observed:
   
   - What did you do (The steps to reproduce)?
   1. produce 3 messages
   
![image](https://github.com/apache/rocketmq-client-cpp/assets/14816818/48091a9f-b2db-45aa-90e6-6fa202a4ff14)
   2. consume the messages with trace enabled
   ```C
   int main(int argc, char* argv[]) {
     int i = 0;
     printf("PushConsumer Initializing....\n");
     CPushConsumer* consumer = CreatePushConsumer("Group_Consumer_Test");
     SetPushConsumerMessageTrace(consumer, OPEN);
     SetPushConsumerNameServerAddress(consumer, "127.0.0.1:9876");
     Subscribe(consumer, "TopicTest", "*");
     RegisterMessageCallback(consumer, doConsumeMessage);
     StartPushConsumer(consumer);
     printf("Push Consumer Start...\n");
     for (i = 0; i < 10; i++) {
       printf("Now Running : %d S\n", i * 10);
       thread_sleep(10000);
     }
     ShutdownPushConsumer(consumer);
     DestroyPushConsumer(consumer);
     printf("PushConsumer Shutdown!\n");
     return 0;
   }
   ```
   - What did you expect to see?
   all the trace produce success
   
   - What did you see instead?
   some trace produce fail
   some error is print in DefaultMQPushConsumerImpl::submitSendTraceRequest
   
   but if I dont send some messages before starting consume, no error is print
   
   2. Please tell us about your environment:
   
    - What is your OS?
   
    - What is your client version?
   
    - What is your RocketMQ version?
   
   4. Other information (e.g. detailed explanation, logs, related issues, 
suggestions on how to fix, etc):
   


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