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() {
|
public void checkpoint() {
|
||||||
|
resetWriteClaims(false);
|
||||||
|
|
||||||
if (!recursionSet.isEmpty()) {
|
if (!recursionSet.isEmpty()) {
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
}
|
}
|
||||||
|
@ -287,7 +289,6 @@ public final class StandardProcessSession implements ProcessSession, ProvenanceE
|
||||||
try {
|
try {
|
||||||
final long commitStartNanos = System.nanoTime();
|
final long commitStartNanos = System.nanoTime();
|
||||||
|
|
||||||
resetWriteClaims(false);
|
|
||||||
resetReadClaim();
|
resetReadClaim();
|
||||||
|
|
||||||
final long updateProvenanceStart = System.nanoTime();
|
final long updateProvenanceStart = System.nanoTime();
|
||||||
|
|
Loading…
Reference in New Issue