mirror of https://github.com/apache/nifi.git
Merge pull request #4119 from eduardofontes/patch-4
NIFI-7233 - Fix Mongo Processors to avoid cycle in provenance graph
This commit is contained in:
commit
a33a5e35b3
|
@ -347,7 +347,9 @@ public abstract class AbstractMongoProcessor extends AbstractProcessor {
|
|||
FlowFile flowFile = parent != null ? session.create(parent) : session.create();
|
||||
flowFile = session.importFrom(new ByteArrayInputStream(payload.getBytes(charset)), flowFile);
|
||||
flowFile = session.putAllAttributes(flowFile, extraAttributes);
|
||||
session.getProvenanceReporter().receive(flowFile, getURI(context));
|
||||
if (parent == null) {
|
||||
session.getProvenanceReporter().receive(flowFile, getURI(context));
|
||||
}
|
||||
session.transfer(flowFile, rel);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue