apoorvmittal10 commented on code in PR #18833: URL: https://github.com/apache/kafka/pull/18833#discussion_r1949584155
########## core/src/main/scala/kafka/server/BrokerServer.scala: ########## @@ -803,7 +807,7 @@ class BrokerServer( if (clientToControllerChannelManager != null) CoreUtils.swallow(clientToControllerChannelManager.shutdown(), this) - if (logManager != null) + if (logManager != null && lifecycleManager != null) Review Comment: Yeah, I understand that. But there could be another case where `lifecycleManager` construction fails, in that case ideally we should close `logManager`, if instantiated, correct? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org