Nick M created NIFI-14117:
-----------------------------

             Summary: kafka.key ignored by default in ProduceKafka2+
                 Key: NIFI-14117
                 URL: https://issues.apache.org/jira/browse/NIFI-14117
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 2.1.0
            Reporter: Nick M


# Consume via ConsumeKafka in FLOW_FILE strategy
 # Check that kafka.key attribute is filled (it' ok)
 # Flow to PublishKafka topic with name 'dst'

In source topic I got keys. Also in termediate queue I've check that kafka.key 
attribute is set.

But in in kafka 'dst' topic I got no key on messages. 

 

If I manually set 'Kafka Key' property to 'kafka.key' that it work as expected 
and in destination topic I got messages with keys.

 

I expect that by default key would be copied as it mention in description:
_If not specified, the FlowFile attribute 'kafka.key' is used as the message 
key, if it is present._

 

So we need one of:
 # Or fix default behaviour to adjust to processor description
 # Or fix description to remove default behaviour.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to