Kafka console consumer ERROR “Offset commit failed on partition”

后端 未结 1 532
广开言路
广开言路 2021-02-01 17:21

I am using a kafka-console-consumer to probe a kafka topic.

Intermittently, I am getting this error message, followed by 2 warnings:

[2018-         


        
相关标签:
1条回答
  • 2021-02-01 18:22

    If you increase max.poll.interval.ms that says “it’s ok to spend time processing a large batch of records” and you’ll gain throughput if you can process larger batches more efficiently than smaller ones.

    To decrease max.poll.records says ”take fewer records so there’s enough time to process them” and would favor latency over throughput.

    Also consider that both are configured fine, but something else is causing performance issues within your poll loop. I would explore that first before changing configuration so you don’t mask a bigger problem.

    0 讨论(0)
提交回复
热议问题