IBMStreams/streamsx.kafka

Resource leak in KafkaProducer when reset to initial state in a CR

Opened this issue · 2 comments

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.

Bug detected when #164 has been tested.

resolved with v2.1.0