Azure / kafka-sink-azure-kusto

Kafka sink for Kusto
MIT License
48 stars 24 forks source link

Flush timer tasks are not stopped when connectors are deleted #64

Closed preston-m-price closed 2 years ago

preston-m-price commented 3 years ago

Steps to reproduce:

Alternatively/additionally

These timer threads should be tied to the lifecycle of the connector's tasks.

This leak actually occurs whenever there is a shuffle of topic partitions. Old TopicPartitionWriters get closed, and new ones get created, but the timers are never stopped. Here is the shape of thread growth in one of our deployments: image

I am testing a fix, and will open a PR this week.

ohadbitt commented 2 years ago

Should be fixed with #71