[
https://issues.apache.org/jira/browse/KAFKA-15397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17760223#comment-17760223
]
hudeqi commented on KAFKA-15397:
--------------------------------
[~showuon]
link:[链接标题|https://github.com/apache/kafka/commit/b401fdaefbfbd9263deef0ab92b6093eaeb26d9b]
, I not only added this pr processing when I fixed it myself, but also
performed a set-null operation on this leaked collection.
> Deserializing produce requests may cause memory leaks when exceptions occur
> ---------------------------------------------------------------------------
>
> Key: KAFKA-15397
> URL: https://issues.apache.org/jira/browse/KAFKA-15397
> Project: Kafka
> Issue Type: Bug
> Components: clients, core
> Affects Versions: 2.8.1
> Reporter: hudeqi
> Assignee: hudeqi
> Priority: Blocker
> Attachments: SeaTalk_IMG_1692796505.png, SeaTalk_IMG_1692796533.png,
> SeaTalk_IMG_1692796604.png, SeaTalk_IMG_1692796891.png
>
>
> When the client sends a produce request in an abnormal way and the server
> accepts it for deserialization, a "java.lang.IllegalArgumentException" may
> occur, which will cause a large number of "TopicProduceData" objects to be
> instantiated without being cleaned up. In the end, the entire service of
> kafka is OOM.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)