Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
- links to