Github user JPercivall commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1233#discussion_r88926499
  
    --- Diff: 
nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-5-processors/src/main/java/org/apache/nifi/processors/elasticsearch/PutElasticsearch5.java
 ---
    @@ -227,6 +227,7 @@ public void process(final InputStream in) throws 
IOException {
                             session.transfer(flowFile, REL_FAILURE);
     
                         } else {
    +                        session.getProvenanceReporter().send(flowFile, 
response.remoteAddress().getAddress());
    --- End diff --
    
    This will only emit provenance event if "response.hasFailures" is true. If 
there are not failures this won't get hit.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to