Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-2093

Remove logging error if we throw exception

    XMLWordPrintableJSON

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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vanyatka Ivan Balashov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: