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

Enhance RecordCollectorImpl exceptions with more context information

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 1.1.0
    • None
    • streams
    • None

    Description

      In KIP-182 we refactored all stores to by plain Bytes/byte[] stores and only have concrete key/value types on outer layers/wrappers of the stores.

      For this reason, the most inner RocksDBStore cannot provide useful error messages anymore if a put/get/delete operation fails as it only handles plain bytes.

      In addition, the corresponding calls to record changelog records to record collectors will also be sending byte arrays only, and hence when there is an error happening, the record collector can only display the key but not the value since it is all bytes:

      [ERROR] org.apache.kafka.streams.processor.internals.RecordCollectorImpl   -
      task [2_2] Error sending record (key {"eventId":XXX,"version":123}
      value [<byte array>] timestamp YYY) to topic TTT
      due to ...
      

      The store exceptions got fixed via KAFKA-6538.

      This Jira is to track the fix for RecordCollectorImpl.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mjsax Matthias J. Sax
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: