Details
-
Improvement
-
Status: Resolved
-
Trivial
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
Description
On failure, kafka producer logs error AND throws exception. This can pose problems, since client application cannot flexibly control if a particular exception should be logged, and logging becomes all-or-nothing choice for particular logger.
We must remove logging error if we decide to throw exception.
Some examples of this:
kafka.client.ClientUtils$:89
kafka.producer.SyncProducer:103
If no one has objections, I can search around for other cases of logging + throwing which should also be fixed.