When the KafkaProducer operator is reset to initial state, a new ProducerClient instance is created. It instantiates a new MetricsFetcher, which consumes a thread from the operator's thread pool.
The thread of the old ProducerClient.metricsFetcher keeps running referencing the old metricsFetcher instance.
When the KafkaProducer operator is reset to initial state, a new ProducerClient instance is created. It instantiates a new
MetricsFetcher
, which consumes a thread from the operator's thread pool.The thread of the old ProducerClient.metricsFetcher keeps running referencing the old metricsFetcher instance.