一个服务消费 kafka 数据出现如下错误:
错误日志: 2022-04-24 17:20:49.168 [org.springframework.kafka.KafkaListenerEndpointContainer#35-0-C-1] ERROR org.apache.kafka.clients.consumer.internals.ConsumerCoordinator[296] - [Consumer clientId=consumer-101, groupId=jsis-update-up-dev] Offset commit with offsets {parkPassagegateInfoUp-0=OffsetAndMetadata{offset=2323, metadata=''}} failed org.apache.kafka.clients.consumer.CommitFailedException: Commit cannot be completed since the group has already rebalanced and assigned the partitions to another member. This means that the time between subsequent calls to poll() was longer than the configured max.poll.interval.ms, which typically implies that the poll loop is spending too much time message processing. You can address this either by increasing the session timeout or by reducing the maximum size of batches returned in poll() with max.poll.records.
Kafka commit:Offset commit with offsets failed
于 2022-04-25 09:37:40 首次发布