-
Notifications
You must be signed in to change notification settings - Fork 11.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] SimpleConsumer message is lost and not received. #8133
Comments
RocketMQ 5.1.1 |
I should say: My producer sends messages in order with content 1, 2, 3, 4, 5. However, after the consumer first starts, it only receives 2, 3, 4, 5, and then has to wait a long time to receive the missing message, which is the number 1. I use this method to verify the consumption order of RocketMQ. A simple consumer's message receiving operation should be sequential and atomic, so I should receive number 1 first instead of 2. This is problematic. The type of my topic is FIFO, and all messages are sent to the same group. My message sending operation is synchronous, which means my message producer ensures the order. |
这个客户端是使用的那个版本? |
|
我想..这应该不是客户端的问题 |
nodejs使用的"rocketmq-client-nodejs": "^1.0.0"版本消费者暂时不能使用,有些问题需要修改发布新版本。 |
可是我这个问题好像和客户端无关,我用java和go的client也一样复现,不只是在nodejs上 |
Before Creating the Bug Report
I found a bug, not just asking a question, which should be created in GitHub Discussions.
I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.
I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
Runtime platform environment
Macos
RocketMQ version
5.1.x
JDK Version
No response
Describe the Bug
Two questions:
Cannot invoke "apache.rocketmq.v2.Settings.getSubscription()" because "settings" is null. NullPointerException. org.apache.rocketmq.proxy.grpc.v2.consumer.ReceiveMessageActivity .receiveMessage(ReceiveMessageActivity.java:63)
I used the SimpleConsumer of the nodejs client to receive messages and found that the messages I produced were not received.
This is my producer, it is sequential, and the topic type is also FIFO:
Here is my consumer, which simulates a situation where I am constantly listening for messages and receiving them:
I will only get one message at a time, that is to say, it should be received sequentially. When I sent 5 messages sequentially, my consumer did not receive the first piece of data, but 2-5 were successfully received. .
I need to wait for a long time to receive the first one (or the retry mechanism), and this is a random phenomenon, and the first data sent is lost inexplicably.
The second problem is that nodejs client will have an error for no reason in my above message listening code:
Steps to Reproduce
It's very simple. Use nodejs client to run a consumer to continuously listen for messages, and then run a producer to send multiple messages. The Topic type is FIFO.
If the problem does not occur, try closing and running it again. Sometimes it takes many attempts to reproduce the problem.
What Did You Expect to See?
I should receive the first piece of data.
What Did You See Instead?
The first piece of data is often lost.
Additional Context
No response
The text was updated successfully, but these errors were encountered: