diff --git a/pkg/mq/msgstream/mqwrapper/kafka/kafka_client.go b/pkg/mq/msgstream/mqwrapper/kafka/kafka_client.go index d8e45bdcbb0f3..69a3e57344aa0 100644 --- a/pkg/mq/msgstream/mqwrapper/kafka/kafka_client.go +++ b/pkg/mq/msgstream/mqwrapper/kafka/kafka_client.go @@ -65,7 +65,7 @@ func NewKafkaClientInstanceWithConfig(ctx context.Context, config *paramtable.Ka return nil, errors.New("context timeout when new kafka client") } timeout := time.Until(deadline).Milliseconds() - kafkaConfig.SetKey("socket.connection.setup.timeout.ms", timeout) + kafkaConfig.SetKey("socket.connection.setup.timeout.ms", strconv.FormatInt(timeout, 10)) } if (config.SaslUsername.GetValue() == "" && config.SaslPassword.GetValue() != "") ||