If user occasionally set sessionTimeoutMs >= heartbeat (default value 3000), an exception is thrown:
Caused by: java.lang.IllegalArgumentException: Heartbeat must be set lower than the session timeout
at org.apache.kafka.clients.consumer.internals.Heartbeat.<init>(Heartbeat.java:39)
It's necessary to add heartbeat.interval.ms property, to allow user to configure consumer in an arbitrary way.
The
heartbeat.interval.ms
is absent in consumer config:If user occasionally set sessionTimeoutMs >= heartbeat (default value 3000), an exception is thrown:
It's necessary to add
heartbeat.interval.ms
property, to allow user to configure consumer in an arbitrary way.