[ 
https://issues.apache.org/jira/browse/KAFKA-15819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Greg Harris updated KAFKA-15819:
--------------------------------
    Priority: Minor  (was: Major)

> KafkaServer leaks KafkaRaftManager when ZK migration enabled
> ------------------------------------------------------------
>
>                 Key: KAFKA-15819
>                 URL: https://issues.apache.org/jira/browse/KAFKA-15819
>             Project: Kafka
>          Issue Type: Bug
>          Components: kraft
>    Affects Versions: 3.6.0
>            Reporter: Greg Harris
>            Assignee: Greg Harris
>            Priority: Minor
>
> In SharedServer, TestRaftServer, and MetadataShell, the KafkaRaftManager is 
> maintained as an instance variable, and shutdown when the outer instance is 
> shutdown. However, in the KafkaServer, the KafkaRaftManager is instantiated 
> and started, but then the reference is lost.
> [https://github.com/apache/kafka/blob/49d3122d425171b6a59a2b6f02d3fe63d3ac2397/core/src/main/scala/kafka/server/KafkaServer.scala#L416-L442]
> Instead, the KafkaServer should behave like the other call-sites of 
> KafkaRaftManager, and shutdown the KafkaRaftManager during shutdown.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to