You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Chris Sampson (Jira)" <ji...@apache.org> on 2022/11/11 16:06:00 UTC

[jira] [Resolved] (NIFI-4414) PutElasticsearch and PutElasticsearch5 should more granularly handle exceptions

     [ https://issues.apache.org/jira/browse/NIFI-4414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Sampson resolved NIFI-4414.
---------------------------------
    Resolution: Won't Fix

These processors have been removed from nifi and the newer alternatives PutElasticsearchRecord/Json are much better at handling such errors

> PutElasticsearch and PutElasticsearch5 should more granularly handle exceptions
> -------------------------------------------------------------------------------
>
>                 Key: NIFI-4414
>                 URL: https://issues.apache.org/jira/browse/NIFI-4414
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Joe Percivall
>            Priority: Minor
>
> PutElasticsearch and PutElasticsearch5 have the same exception handling such that when an exception occurs, any FlowFiles left in flowFilesToTransfer are transferred to failure (except in a timeout scenario). This does not discriminate between errors that occur in the first part (setting up the request by iterating over the FlowFiles) and the second part (checking the individual responses for success or failure).
> A good example of why this is deficient is if EL is used and the timestamp toDate function is used with an improper format. This would cause an error to occur here[1] and then automatically fail all the FlowFiles in the batch (default batch of 100), regardless if they would've succeeded if actually run.
> [1] https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-5-processors/src/main/java/org/apache/nifi/processors/elasticsearch/PutElasticsearch5.java#L196



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