Skip to content

Consume Offset been Updated Incorrectly with Orderly Push Consumer #322

@luyui

Description

@luyui

BUG REPORT

  1. Please describe the issue you observed:
  • What did you do (The steps to reproduce)?

    1. Start consuming using orderly PusherConsumer.
    2. Send one message.
    3. 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

  1. Please tell us about your environment:
  • What is your OS?

CentOS 7

  • What is your client version?

b884f17

  • What is your RocketMQ version?

4.7.2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions