mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 18:38:44 +08:00
fix: Close leaked health check kafka producer (#37728)
Related to #36822 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
3f7352f3cf
commit
4820dd76e5
@ -114,6 +114,7 @@ func KafkaHealthCheck(clusterStatus *pcommon.MQClusterStatus) {
|
||||
clusterStatus.Reason = fmt.Sprintf("failed to create Kafka producer: %v", err)
|
||||
return
|
||||
}
|
||||
defer producer.Close()
|
||||
|
||||
metadata, err := producer.GetMetadata(nil, false, 3000)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user