wurstmeister / kafka-docker

Dockerfile for Apache Kafka
http://wurstmeister.github.io/kafka-docker/
Apache License 2.0
6.89k stars 2.73k forks source link

problem:Tried to send a message to a replica that is not the leader,Your metadata is out of date #735

Open opencmit2 opened 1 year ago

opencmit2 commented 1 year ago

client error: 2023-02-24T08:29:30.9152WARN kafka/log.go:51 producer/broker/1 state change to [retrying] on devops-ci-log/3 because send a message to a replica that is not the leader for some partition, Your metadata is out of date.

Note: The client is in go language, and messages are sent in batches. Kafka has enabled idempotent mechanism, This error is not often reported,