mirror of https://github.com/apache/nifi.git
NIFI-1577: Close any streams that are left open for 'append' when the session is checkpointed, rather than waiting for it to be committed
This commit is contained in:
parent
62333c9e0a
commit
6776060ac8
|
@ -180,6 +180,8 @@ public final class StandardProcessSession implements ProcessSession, ProvenanceE
|
|||
}
|
||||
|
||||
public void checkpoint() {
|
||||
resetWriteClaims(false);
|
||||
|
||||
if (!recursionSet.isEmpty()) {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
@ -287,7 +289,6 @@ public final class StandardProcessSession implements ProcessSession, ProvenanceE
|
|||
try {
|
||||
final long commitStartNanos = System.nanoTime();
|
||||
|
||||
resetWriteClaims(false);
|
||||
resetReadClaim();
|
||||
|
||||
final long updateProvenanceStart = System.nanoTime();
|
||||
|
|
Loading…
Reference in New Issue