Consumer gets kicked out if it fails to send heart beat in designated time period. Every call to poll sends one heart beat to consumer group coordinator.
You need to look at *how much time is it taking to process your single record*. *Maybe it is exceeding session.timeout.ms <http://session.timeout.ms> value* which you have set as 30s. Try increasing that. Also *keep max.poll.records to a lower value*. This setting determines how many records are fetched after the call to poll method. If you fetch too many records then even if you keep session.timeout.ms to a large value your consumer might still get kicked out and group will enter rebalancing stage. On Thu, Aug 9, 2018 at 2:00 AM Moiz Raja (moraja) <[email protected]> wrote: > Hi All, > > I have an issue with the consumer getting kicked out of the group possibly > due to other issues going on in the system. The issue is detailed here > https://stackoverflow.com/questions/51754794/how-to-reinstate-a-kafka-consumer-which-has-been-kicked-out-of-the-group > > Any help with this issue would be appreciated. > > Regards, > -Moiz >
