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

Add more public API tests for KafkaProducer

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:

      Description

      While working on KIP-447, we realized a lack of test coverage on the KafkaProducer public APIs. For example, `commitTransaction` and `sendOffsetsToTransaction` are not even called in the `KafkaProducerTest.java` and the code coverage is only 75%. 

      Adding more unit tests here will be pretty valuable.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jeffkbkim Jeff Kim
                Reporter:
                bchen225242 Boyang Chen
                Reviewer:
                Boyang Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: