Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-7953

Allow ConsumeKafka_2_* / ConsumeKafkaRecord_2_* to separate Records based on Message Key

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.13.0
    • Extensions
    • None

    Description

      The Kafka consumer processors ignore the Message Key when using a demarcator or when using the Record variant, because adding a FlowFile attribute for the message key doesn't make sense, since the key is likely different per record.

      However, a fairly common use case is to use the Key only for partitioning and many Kafka Messages may exist for the same key. For example, this is commonly used for CDC type of use cases where the key may just be a table name.

      For such cases, it would be helpful to allow the consumer processors to avoid adding two messages to the same FlowFile if their keys are different. I.e., all records in a given FlowFile will have the same key. The key can then be added as a FlowFile attribute.

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m