mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-24 16:04:00 +08:00
Merge pull request #2640 from areyouok/fix_resetOffset
[ISSUE #2449] fix: resetOffset simultaneously will cause each message consume more than once
This commit is contained in:
@@ -1105,7 +1105,7 @@ public class MQClientInstance {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void resetOffset(String topic, String group, Map<MessageQueue, Long> offsetTable) {
|
||||
public synchronized void resetOffset(String topic, String group, Map<MessageQueue, Long> offsetTable) {
|
||||
DefaultMQPushConsumerImpl consumer = null;
|
||||
try {
|
||||
MQConsumerInner impl = this.consumerTable.get(group);
|
||||
|
||||
Reference in New Issue
Block a user