Skip to content

Commit d0e31a2

Browse files
authored
[ISSUE #9703] Remove pull offset and reset offset when deleting topic (#9704)
1 parent 02f413d commit d0e31a2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

broker/src/main/java/org/apache/rocketmq/broker/offset/ConsumerOffsetManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ public void cleanOffsetByTopic(String topic) {
9797
if (arrays.length == 2 && topic.equals(arrays[0])) {
9898
it.remove();
9999
removeConsumerOffset(topicAtGroup);
100+
pullOffsetTable.remove(topicAtGroup);
101+
resetOffsetTable.remove(topicAtGroup);
100102
LOG.warn("Clean topic's offset, {}, {}", topicAtGroup, next.getValue());
101103
}
102104
}

0 commit comments

Comments
 (0)