mirror of https://github.com/apache/nifi.git
NIFI-711: Do not check status of FlowFile when emitting provenance CLONE event during session commit/checkpoint
This commit is contained in:
parent
77a0561bc0
commit
b22a1261c3
|
@ -260,7 +260,7 @@ public final class StandardProcessSession implements ProcessSession, ProvenanceE
|
|||
|
||||
final FlowFileRecord clone = builder.build();
|
||||
final StandardRepositoryRecord newRecord = new StandardRepositoryRecord(destination.getFlowFileQueue());
|
||||
getProvenanceReporter().clone(currRec, clone);
|
||||
provenanceReporter.clone(currRec, clone, false);
|
||||
|
||||
final ContentClaim claim = clone.getContentClaim();
|
||||
if (claim != null) {
|
||||
|
|
|
@ -327,7 +327,13 @@ public class StandardProvenanceReporter implements ProvenanceReporter {
|
|||
|
||||
@Override
|
||||
public void clone(final FlowFile parent, final FlowFile child) {
|
||||
verifyFlowFileKnown(child);
|
||||
clone(parent, child, true);
|
||||
}
|
||||
|
||||
void clone(final FlowFile parent, final FlowFile child, final boolean verifyFlowFile) {
|
||||
if (verifyFlowFile) {
|
||||
verifyFlowFileKnown(child);
|
||||
}
|
||||
|
||||
try {
|
||||
final ProvenanceEventBuilder eventBuilder = build(parent, ProvenanceEventType.CLONE);
|
||||
|
|
Loading…
Reference in New Issue