Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -555,16 +555,9 @@ public CompletableFuture<Boolean> revive(PopConsumerRecord record) {
});
}

@SuppressWarnings("StatementWithEmptyBody")
public void clearCache(String groupId, String topicId, int queueId) {
while (!consumerLockService.tryLock(groupId, topicId)) {
}
try {
if (popConsumerCache != null) {
popConsumerCache.removeRecords(groupId, topicId, queueId);
}
} finally {
consumerLockService.unlock(groupId, topicId);
if (popConsumerCache != null) {
popConsumerCache.removeRecords(groupId, topicId, queueId);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2183,7 +2183,6 @@ private RemotingCommand resetOffsetInner(String topic, String group, int queueId
brokerController.getPopInflightMessageCounter().clearInFlightMessageNum(topic, group, entry.getKey());
}
if (brokerController.getBrokerConfig().isPopConsumerKVServiceEnable()) {
brokerController.getPopConsumerService().clearCache(group, topic, entry.getKey());
brokerController.getConsumerOffsetManager().clearPullOffset(group, topic);
}
body.getOffsetTable().put(new MessageQueue(topic, brokerName, entry.getKey()), entry.getValue());
Expand Down
Loading