Skip to content

NIFI-2444 NIFI-2445 fixed PublishKafka#761

Merged
asfgit merged 2 commits intoapache:0.xfrom
olegz:NIFI-2444-0.x
Aug 3, 2016
Merged

NIFI-2444 NIFI-2445 fixed PublishKafka#761
asfgit merged 2 commits intoapache:0.xfrom
olegz:NIFI-2444-0.x

Conversation

@olegz
Copy link
Copy Markdown
Contributor

@olegz olegz commented Aug 1, 2016

  • fixed the logging issue NIFI-2444 by ensuring the ProcessLog is added to KafkaPublisher
  • fixed KafkaPublisher's isAllAcked operation to ensure that it properly reports that the flow file has failed.
  • added additional test

- fixed the logging issue NIFI-2444 by ensuring the ProcessLog is added to KafkaPublisher
- fixed KafkaPublisher's isAllAcked operation to ensure that it properly reports that the flow file has failed.
- added additional test
@brosander
Copy link
Copy Markdown
Contributor

Checkstyle error

[INFO] --- maven-checkstyle-plugin:2.15:check (check-style) @ nifi-kafka-processors ---
[WARNING] src/main/java/org/apache/nifi/processors/kafka/KafkaPublisher.java[36:8] (imports) UnusedImports: Unused import - org.apache.nifi.logging.ComponentLog.

private void warnOrError(String message, Exception e) {
if (e == null) {
logger.warn(message);
if (this.processLog != null) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a little off to me, @olegz - why not just pass the ComponentLog in to the constructor? It should always be present.

@olegz
Copy link
Copy Markdown
Contributor Author

olegz commented Aug 2, 2016

@markap14 done

@olegz
Copy link
Copy Markdown
Contributor Author

olegz commented Aug 2, 2016

@markap14 @brosander done

@asfgit asfgit merged commit 7a9cbe1 into apache:0.x Aug 3, 2016
@markap14
Copy link
Copy Markdown
Contributor

markap14 commented Aug 3, 2016

Thanks @olegz. All looks good. +1 merged to 0.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants