mirror of https://github.com/apache/nifi.git
NIFI-7935 Add reason to flow file on error
This closes #4608 Signed-off-by: Mike Thomsen <mthomsen@apache.org>
This commit is contained in:
parent
4a370eae8c
commit
b442df58e2
|
@ -357,6 +357,7 @@ public class PutElasticsearchHttp extends AbstractElasticsearchHttpProcessor {
|
|||
new Object[]{flowFile, errorReason});
|
||||
}
|
||||
flowFile = session.penalize(flowFile);
|
||||
flowFile = session.putAttribute(flowFile, "reason", errorReason);
|
||||
session.transfer(flowFile, REL_FAILURE);
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue