[ 
https://issues.apache.org/jira/browse/NIFI-14117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17909103#comment-17909103
 ] 

Paul Grey commented on NIFI-14117:
----------------------------------

Thanks for the report.  Missed that detail during the refactor.  Fix to default 
behavior available in PR.

 

> kafka.key ignored by default in PublishKafka
> --------------------------------------------
>
>                 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
>            Assignee: Paul Grey
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> # 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