[ https://issues.apache.org/jira/browse/KAFKA-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17236659#comment-17236659 ]
dengziming commented on KAFKA-10753: ------------------------------------ Every time you call KafkaConsumer.poll(), auto-commit is invoked repeatedly if no records are returned before timeout, not only auto-commit is invoked, heartbeat will also be invoked if `max.poll.interval.ms` is set to 0. One suggestion is to add a backoff in `KafkaConsumer.pollForFetches`, or just add docs to remind the user how to set timeout configs. > check if ConsumerConfig.AUTO_COMMIT_INTERVAL_MS_CONFIG > 0 > ----------------------------------------------------------- > > Key: KAFKA-10753 > URL: https://issues.apache.org/jira/browse/KAFKA-10753 > Project: Kafka > Issue Type: Improvement > Components: consumer > Reporter: shiqihao > Assignee: lqjacklee > Priority: Minor > > I accidentally set ConsumerConfig.AUTO_COMMIT_INTERVAL_MS_CONFIG = 0, CPU > running at 100%. > Could we add a check if ConsumerConfig.AUTO_COMMIT_INTERVAL_MS_CONFIG > 0 > while start consumer? -- This message was sent by Atlassian Jira (v8.3.4#803005)