Hi Team, We are using Apache Kafka 3.3.1 in our application. We have created Kafka Admin Client , Kafka Producer and Kafka consumer in the application using the default properties.
Once our application starts we are observing below disconnects logs every 5 minutes for Admin client and once for Kafka consumer and producer in our application. Also at around the same time disconnection logs are being observed in Kafka debug server logs.. Below is log snippet for the same. Application logs snippet:- [cid:image001.png@01DA2A15.C04491D0] Debug Kafka server.log snippet [cid:image002.png@01DA2A15.C04491D0] [cid:image003.png@01DA2A15.C04491D0] However, if we create Kafka Admin client , producer and consumer by overriding default "connections.max.idle.ms" property to a value greater default value ( 5 mins ) like 5 mins 2 second or say 10 mins, we observe disconnection logs only one disconnection log. Below are logs for the same. [cid:image004.png@01DA2A15.C04491D0] Request you all to kindly let us know why this disconnection is happening every 5 minutes if we don't override the default "connections.max.idle.ms" property and why it disconnects just only once if the time is increased beyond 5 mins for the "connections.max.idle.ms" property.? Regards, Ankit Nigam