[Bug] 4.8.0 version dledger mode,producer get a result with wrong offset when sending message
Before Creating the Bug Report
-
[X] I found a bug, not just asking a question, which should be created in GitHub Discussions.
-
[X] I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.
-
[X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.
Runtime platform environment
OS: linux
RocketMQ version
version: 4.8.0 dledger mode
JDK Version
1.8
Describe the Bug
producer get a result with wrong offset when sending message one by one, eg:
result:{"messageQueue":{"brokerName":"broker-a","queueId":5,"topic":"XXX_TOPIC"},"msgId":"0AB70A3C11D6293D01072F7A9C3A0A7A","offsetMsgId":"0AB70BE5000078BF0000000905EDED1C","queueOffset":26,"regionId":"DefaultRegion","sendStatus":"SEND_OK","traceOn":true}
The above offset is 26. But the offset in server is about 8000+. At the same time the consumer can not consume this message with wrong offset.
Looking into the log in server, there are lots of logs, eg:2024-10-07 17:00:26 WARN PullMessageThread_9 - PULL_OFFSET_MOVED:correction offset. topic=XXX_TOPIC, groupId=TOOLS_CONSUMER, requestOffset=xxx,
Steps to Reproduce
online error. can not reproduce now.
What Did You Expect to See?
Is it possible topicQueueTable in server would be reset to 0 in 4.8.0 dleger version? or Is it a bug?
What Did You See Instead?
producer send msg one by one with right offset
Additional Context
none