ah- / rdkafka-dotnet

C# Apache Kafka client
Other
242 stars 73 forks source link

How to know what topic failed OnConsumerError #101

Open javierholguera opened 7 years ago

javierholguera commented 7 years ago

The EventConsumer allows consuming from multiple topics at the same time. When a message is successfully received (OnMessage event), the event handler will receive a Message struct with topic, partition, offset, payload, etc.

However when it fails (OnConsumerError event), the event handler only receives an ErrorCode, so it's difficult to correlate an error with the topic it was being consumed that caused it. Is this deliberate or would it make sense to pass both values to the event handler?

Thanks.