Closed htims1989 closed 6 years ago
https://github.com/confluentinc/confluent-kafka-dotnet/wiki/Producing-messages#important-notes
At current time, ProduceAsync may throw exception in some case (message too big for example). This may change in a future release (no throw but returns a message with Error instead)
To be more clear, on first send, ProduceAsync will success but DeliveryHandler will contain an error (unknown topic) Next call will directly return by throwing without trying to send the data because the error is considered permanent (need manual intervention) It will try again if metadata which are called frequently show the topic has been created
You have to call ProduceAsync in a Try/Catch + check the message.Error to know if an error occured. This is tracked in #203
tracking in #203
Description
Attempting to produce with ACLs in place that deny access causes producer.ProduceAsync to throw:
consumer.Poll correctly returns an error via the consumer.OnError event:
How to reproduce
Enable client authentication on the broker and set up an ACL using the certificates Subject to deny access. Attempt to produce using producer.ProduceAsync.
Checklist
Please provide the following information: