[
https://issues.apache.org/jira/browse/FLINK-34693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Richter updated FLINK-34693:
-----------------------------------
Description:
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!
was:
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!
> 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.0, 1.19.0, 1.18.1
> Reporter: Stefan Richter
> Priority: Blocker
> 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!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)