Stefan Richter created FLINK-34693: -------------------------------------- Summary: Memory leak in KafkaWriter Key: FLINK-34693 URL: https://issues.apache.org/jira/browse/FLINK-34693 Project: Flink Issue Type: Bug Components: Connectors / Kafka Affects Versions: 1.18.1, 1.19.0, 1.18.0 Reporter: Stefan Richter Attachments: image-2024-03-15-10-30-08-280.png, image-2024-03-15-10-30-50-902.png
KafkaWriter is keeping instances of {{TwoPhaseCommitProducer}} in Dequeue of closeables ({{{}producerCloseables{}}}). We are only adding instances to the queue (for each txn?), but never remove them so that the can be GC’ed. >From heap dump: !image-2024-03-15-10-30-50-902.png! !04599375-f923-4d1a-8d68-9e17e54b363c#media-blob-url=true&id=9d1e022e-8762-45b3-877b-d298ec956078&collection=&contextId=870337&height=306&width=2284&alt=!!image-2024-03-15-10-30-08-280.png!!image-2024-03-15-10-28-48-591.png! -- This message was sent by Atlassian Jira (v8.20.10#820010)