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:
Mark Payne 2016-02-29 16:02:26 -05:00
parent 62333c9e0a
commit 6776060ac8
1 changed files with 2 additions and 1 deletions

View File

@ -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();