Skip to content

Commit

Permalink
ADS-1063. Change TrieMaps to Caffeine Cache with expiration timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
Asmoday committed Jun 21, 2023
1 parent 71af2df commit 57a38e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/kafka/manager/actor/cluster/KafkaStateActor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@ case class KafkaManagedOffsetCache(clusterContext: ClusterContext
groupTopicPartitionOffsetSet.clear()
groupTopicPartitionOffsetMap.invalidateAll()
groupTopicPartitionOffsetMap.cleanUp()
topicConsumerSetMap.invalidateAll();
topicConsumerSetMap.cleanUp();
consumerTopicSetMap.invalidateAll();
consumerTopicSetMap.cleanUp();
info(s"KafkaManagedOffsetCache shut down for cluster ${clusterContext.config.name}")
}

Expand Down

0 comments on commit 57a38e1

Please sign in to comment.