Home > Back-end > Kafka producer sends a message of failure would happen in the morning every day, can restart again a
Kafka producer sends a message of failure would happen in the morning every day, can restart again a
Time:09-22
Springboot version 2.0.1, Kafka - clients version 1.0.1, Kafka server version 0.11
Only enable producers configuration. Idempotence: true for a particular configuration, to ensure the message does not appear to repeat to send, the rest are default.
The situation is the service at the time of the morning producers blocking would happen a topic, specific exception is: Failed to send. Nested exception is org.apache.kafka.com mon. Errors. TimeoutException: Expiring 2 record (s) for myTopic - 3:59349 ms has passed since the last append
And all the other producers are not sent, other producers also can appear abnormal: Org.apache.kafka.com mon. Errors. TimeoutException: Failed to update metadata after 60000 ms.
But only this one service will appear this kind of situation, more than 20 other services involved in kafka were can normal consumption and production, also can work normally after the service restart, but one to five or six o 'clock in the morning and this would happen and need to restart.
Now look at the server network, memory, I/O, CPU, etc., consumption is small, and in the morning has less amount of data. This topic one day there will be about 150 w control the amount of data, basic it in the daytime, evening will probably have less than 10 w the amount of data.
Now is don't understand why will appear this problem in the morning.
CodePudding user response:
Look at the log, look at this point in time to send the data content is what? Look at this time point in other services without doing anything?