mirror of https://github.com/apache/nifi.git
NIFI-835: Ensure that on session commit the provenance events that were emitted are returned by TestRunner.getProvenanceEvents()
This commit is contained in:
parent
33279fd9d7
commit
7cd84967dd
|
@ -66,7 +66,7 @@ public class MockProcessSession implements ProcessSession {
|
|||
private final Map<Long, MockFlowFile> originalVersions = new HashMap<>();
|
||||
private final SharedSessionState sharedState;
|
||||
private final Map<String, Long> counterMap = new HashMap<>();
|
||||
private final ProvenanceReporter provenanceReporter;
|
||||
private final MockProvenanceReporter provenanceReporter;
|
||||
|
||||
private boolean committed = false;
|
||||
private boolean rolledback = false;
|
||||
|
@ -135,6 +135,7 @@ public class MockProcessSession implements ProcessSession {
|
|||
sharedState.adjustCounter(entry.getKey(), entry.getValue());
|
||||
}
|
||||
|
||||
sharedState.addProvenanceEvents(provenanceReporter.getEvents());
|
||||
counterMap.clear();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue