We get random NetworkExceptions and TimeoutExceptions in our production environment:
Brokers: 3 Zookeepers: 3 Servers: 3 Kafka: 0.10.0.1 Zookeeeper: 3.4.3
We sometimes get this exception in my producer logs:
10 entries expire for TOPIC: XXXXXX: 5608 ms has passed since the creation time plus the wait time.
The number of milliseconds in such error messages continues to change. Sometimes its ~ 5 seconds; in other cases, it is up to ~ 13 seconds!
And very rarely do we get:
NetworkException: Server disconnected before response received.
The cluster consists of brokers 3 and 3 zookeepers. The manufacturers server and the Kafka cluster are on the same network.
I am making synchronous calls. There is a web service that is accessed by several user requests to send their data. The Kafka web service has one manufacturer object that performs the entire dispatch. The manufacturer's request timeout was 1000 ms, which was changed to 15000 ms (15 seconds). Even after increasing the waiting period, TimeoutExceptions are still displayed in the error logs.
What could be the reason?
java apache-kafka
Shades88
source share