Replies: 6 comments 14 replies
-
| Since that is just an INFO from the Kafka Client, then there is indeed nothing we can do on our side: https://stackoverflow.com/questions/73823931/node-disconnected-errors-in-kafka-streams-api. It is probably better to ask such a question on Apache Kafka community. | 
Beta Was this translation helpful? Give feedback.
-
| did as suggested : Then, KafkaTemplate's doSend() , the exception throw was triggered: (2.8.11 - if it's important) with error: but message didn't move to failureChannel :  | 
Beta Was this translation helpful? Give feedback.
-
| My apologies to @artembilan, in this case, the exception is thrown by the code he cited and will be thrown to the caller, regardless of the  @artembilan Do you think we should add a try/catch (and rethrow) block around this code: So we consistently send the error message? On the other hand, if it is a direct channel, the caller will directly get the exception; if async, the exception will go to an error channel (if configured). | 
Beta Was this translation helpful? Give feedback.
-
| @artembilan I don't need to do explicit retry - just some other logic. | 
Beta Was this translation helpful? Give feedback.
-
| Still something not correct. advice: not triggered | 
Beta Was this translation helpful? Give feedback.
-
| handler is a bean, what is not triggered is the  I see now, failed on | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes there are "error" network/kafka cluster errors - that can be only detected when we see in logs something like:
"INFO","logger":"org.apache.kafka.clients.NetworkClient","message":"[Producer clientId=producer-1] Node 2 disconnected.The problem KafkaTemplate/KafkaProducerMessageHandler can't identify it as error, and data can be lost.
Need some reliable solution for this.
Beta Was this translation helpful? Give feedback.
All reactions