nifi/nifi-nar-bundles/nifi-kafka-bundle
Koji Kawamura e5ed62a98f NIFI-4724: Support 0 byte message with PublishKafka
Before this fix, PublishKafka (0.9) and PublishKafka_0_10 fail with empty incoming FlowFiles due to 'transfer relationship not specified' error.
Because the internal 'publish' method is not called as StreamDemarcator does not emit any token regardless whether demarcator is set or not.

As for PublishKafka_0_11 and PublishKafka_1_0, empty FlowFiles are transferred to 'success' relationship, however no Kafka message is sent to Kafka.

Since Kafka allows 0 byte body empty messages, NiFi should be able to send it, too.

This commit changes above current situation to the followings, with all PublishKafka_* processors:

- If demarcator is not set, then publish incoming FlowFile content as it is. This enables sending an empty Kafka message.
- If demarcator is set, send each token as a separate message.
  Even if no token is found (empty incoming FlowFile), transfer the FlowFile to 'success'.

This closes #2362.

Signed-off-by: Mark Payne <markap14@hotmail.com>
2018-01-05 10:42:58 -05:00
..
nifi-kafka-0-8-nar NIFI-4444: 2017-10-12 10:27:02 -07:00
nifi-kafka-0-8-processors NIFI-4412-RC2 prepare for next development iteration 2017-09-28 13:45:36 -04:00
nifi-kafka-0-9-nar NIFI-4444: 2017-10-12 10:27:02 -07:00
nifi-kafka-0-9-processors NIFI-4724: Support 0 byte message with PublishKafka 2018-01-05 10:42:58 -05:00
nifi-kafka-0-10-nar NIFI-4444: 2017-10-12 10:27:02 -07:00
nifi-kafka-0-10-processors NIFI-4724: Support 0 byte message with PublishKafka 2018-01-05 10:42:58 -05:00
nifi-kafka-0-11-nar NIFI-4412-RC2 prepare for next development iteration 2017-09-28 13:45:36 -04:00
nifi-kafka-0-11-processors NIFI-4724: Support 0 byte message with PublishKafka 2018-01-05 10:42:58 -05:00
nifi-kafka-1-0-nar NIFI-4600: This closes #2312. Added nifi-kafka-1-0-nar and nifi-kafka-1-0-processors modules 2017-12-04 16:51:59 -05:00
nifi-kafka-1-0-processors NIFI-4724: Support 0 byte message with PublishKafka 2018-01-05 10:42:58 -05:00
pom.xml NIFI-4600: This closes #2312. Added nifi-kafka-1-0-nar and nifi-kafka-1-0-processors modules 2017-12-04 16:51:59 -05:00