sarama icon indicating copy to clipboard operation
sarama copied to clipboard

no config related to max.poll.interval.ms ?

Open joshua0x opened this issue 4 years ago • 2 comments

Versions

Please specify real version numbers or git SHAs, not just "Latest" since that changes fairly regularly.

Sarama Kafka Go
Configuration

What configuration values are you using for Sarama and Kafka?

Logs

When filing an issue please provide logs from Sarama and Kafka if at all possible. You can set sarama.Logger to a log.Logger to capture Sarama debug output.

logs: CLICK ME

Problem Description

joshua0x avatar Jan 27 '21 11:01 joshua0x

as far as I know, MaxProcessingTime is equivalent to max.poll.interval.ms.

LucasDove avatar Feb 08 '21 06:02 LucasDove

i think max.poll.interval.ms == MaxProcessingTime * ChannelBufferSize. since for me max.poll.interval.ms means batch message process time out, and MaxProcessingTime means single message process time out.

ZjoeyZ avatar May 05 '22 09:05 ZjoeyZ

Thank you for taking the time to raise this issue. However, it has not had any activity on it in the past 90 days and will be closed in 30 days if no updates occur. Please check if the main branch has already resolved the issue since it was raised. If you believe the issue is still valid and you would like input from the maintainers then please comment to ask for it to be reviewed.

github-actions[bot] avatar Aug 25 '23 20:08 github-actions[bot]

@joshua0x Sarama has MaxProcessingTime as a config parameter similar to the Java client's max.poll.interval.ms https://github.com/IBM/sarama/blob/d2dba29e9545c5af80169e541b1170c3dd34b3b9/config.go#L391-L408

It is a locally enforced client timeout and is separate from the heartbeat to the server which keeps the session alive. See "Decoupling the processing timeout" in KIP-62

dnwe avatar Aug 25 '23 20:08 dnwe