-
Notifications
You must be signed in to change notification settings - Fork 166
Consume Offset been Updated Incorrectly with Orderly Push Consumer #322
Description
BUG REPORT
- Please describe the issue you observed:
-
What did you do (The steps to reproduce)?
- Start consuming using orderly PusherConsumer.
- Send one message.
- Hold the message inside the consume callback(ie. not returning the callback)
-
What did you expect to see?
The message should not been commited to the broker and the consumer group should have 1 message delay -
What did you see instead?
From the console, found the consum offset been updated to the latest, no delay
- Please tell us about your environment:
- What is your OS?
CentOS 7
- What is your client version?
- What is your RocketMQ version?
4.7.2
- Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):
Here is the debug log: 14805_rocketmq-cpp.log, the message consume callback is not returned during the whole log time range.
It seems the incorrect consume offset update happened somewhere between line 5906 and 6200
5906: 2020-Jul-16 11:49:46.390552:oneway updateConsumeOffsetToBroker of mq:MessageQueue [topic=dev-prefix-new-test, brokerName=broker-0.rocketmq-dev-240-141, queueId=1], its offset is:8036[updateConsumeOffsetToBroker:310]
...
6200: 2020-Jul-16 11:49:51.393309:oneway updateConsumeOffsetToBroker of mq:MessageQueue [topic=dev-prefix-new-test, brokerName=broker-0.rocketmq-dev-240-141, queueId=1], its offset is:8037[updateConsumeOffsetToBroker:310]