Kafka AdminClient DEFAULT_API_TIMEOUT_MS_CONFIG property not working as expected.

2022-12-19 Thread shruti pandey
Hi, I have previously send this query. In my java application for kafkaProducer i created Admin and used this to list topics. Admin admin1 = Admin.create(properties). ListTopicsResult listTopicResult = admin1.listTopics(); When producer was not able to connect to broker, thread get stucks at l

RE: [External] : Re: Kafka AdminClient DEFAULT_API_TIMEOUT_MS_CONFIG property not working as expected

2022-12-12 Thread Shruti Pandey
-Original Message- From: Luke Chen Sent: Monday, December 12, 2022 3:09 PM To: dev@kafka.apache.org Cc: Brahmpal Kauntey Subject: [External] : Re: Kafka AdminClient DEFAULT_API_TIMEOUT_MS_CONFIG property not working as expected Hi Shruti, Are you sure it creates admin client successfully

Re: Kafka AdminClient DEFAULT_API_TIMEOUT_MS_CONFIG property not working as expected

2022-12-12 Thread Luke Chen
Hi Shruti, Are you sure it creates admin client successfully after setting default.api.timeout.ms=2000 ? It should fail at this check: https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java#L618-L621 Try also set request.timeout.ms=20

Kafka AdminClient DEFAULT_API_TIMEOUT_MS_CONFIG property not working as expected

2022-12-11 Thread Shruti Pandey
Hi, In my java application for kafkaProducer i created Admin and used this to list topics. Admin admin1 = Admin.create(properties). ListTopicsResult listTopicResult = admin1.listTopics(); When producer was not able to connect to broker, thread get stucks at listTopic step. To avoid this i ha