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

send of null key to a compacted topic should throw error back to user

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 0.10.2.0
    • None
    • producer
    • None

    Description

      If a message with a null key is produced to a compacted topic, the broker returns `CorruptRecordException`, which is a retriable exception. As such, the producer keeps retrying until retries are exhausted or request.timeout.ms expires and eventually throws a TimeoutException. This is confusing and not user-friendly.

      We should throw a meaningful error back to the user. From an implementation perspective, we would have to use a non retriable error code to avoid this issue.

      Attachments

        Issue Links

          Activity

            People

              mgharat Mayuresh Gharat
              ijuma Ismael Juma
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: