Skip to content

Commit

Permalink
fix(core): compare topic id with equal (#870)
Browse files Browse the repository at this point in the history
Signed-off-by: Shichao Nie <[email protected]>
  • Loading branch information
SCNieh authored Mar 1, 2024
1 parent b50958e commit 4a2c0a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ private void replay(PartitionChangeRecord record) {

private void replay(RemoveTopicRecord record) {
Uuid topicId = record.topicId();
Predicate<TopicIdPartition> matchesTopic = tp -> tp.topicId() == topicId;
Predicate<TopicIdPartition> matchesTopic = tp -> tp.topicId().equals(topicId);

topicCount--;
topicPartitions.keySet().removeIf(matchesTopic);
Expand Down

0 comments on commit 4a2c0a4

Please sign in to comment.