mirror of https://github.com/apache/nifi.git
NIFI-841 fixed contrib check issues
Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
parent
c3731703f3
commit
8e5347156f
|
@ -306,11 +306,16 @@ public final class StandardProcessSession implements ProcessSession, ProvenanceE
|
|||
final long claimRemovalStart = System.nanoTime();
|
||||
final long updateProvenanceNanos = claimRemovalStart - updateProvenanceStart;
|
||||
|
||||
// Figure out which content claims can be released.
|
||||
// At this point, we will decrement the Claimant Count for the claims via the Content Repository.
|
||||
// We do not actually destroy the content because otherwise, we could remove the
|
||||
// Original Claim and crash/restart before the FlowFileRepository is updated. This will result in the FlowFile being restored such that
|
||||
// the content claim points to the Original Claim -- which has already been removed!
|
||||
/**
|
||||
* Figure out which content claims can be released. At this point,
|
||||
* we will decrement the Claimant Count for the claims via the
|
||||
* Content Repository. We do not actually destroy the content
|
||||
* because otherwise, we could remove the Original Claim and
|
||||
* crash/restart before the FlowFileRepository is updated. This will
|
||||
* result in the FlowFile being restored such that the content claim
|
||||
* points to the Original Claim -- which has already been removed!
|
||||
*
|
||||
*/
|
||||
for (final Map.Entry<FlowFileRecord, StandardRepositoryRecord> entry : checkpoint.records.entrySet()) {
|
||||
final FlowFile flowFile = entry.getKey();
|
||||
final StandardRepositoryRecord record = entry.getValue();
|
||||
|
|
Loading…
Reference in New Issue