private void resetWriteClaims() { resetWriteClaims(true); }
/** * Destroys a ContentClaim that was being written to but is no longer needed * * @param claim claim to destroy */ private void destroyContent(final ContentClaim claim) { if (claim == null) { return; } final int decrementedClaimCount = context.getContentRepository().decrementClaimantCount(claim); if (decrementedClaimCount <= 0) { resetWriteClaims(); // Have to ensure that we are not currently writing to the claim before we can destroy it. context.getContentRepository().remove(claim); } }
return createTaskTerminationStream(errorHandlingOutputStream); } catch (final ContentNotFoundException nfe) { resetWriteClaims(); // need to reset write claim before we can remove the claim destroyContent(newClaim); handleContentNotFound(nfe, record); throw nfe; } catch (final FlowFileAccessException ffae) { resetWriteClaims(); // need to reset write claim before we can remove the claim destroyContent(newClaim); throw ffae; } catch (final IOException ioe) { resetWriteClaims(); // need to reset write claim before we can remove the claim destroyContent(newClaim); throw new ProcessException("IOException thrown from " + connectableDescription + ": " + ioe.toString(), ioe); } catch (final Throwable t) { resetWriteClaims(); // need to reset write claim before we can remove the claim destroyContent(newClaim); throw t;
resetWriteClaims(); resetReadClaim();
resetWriteClaims(); // need to reset write claim before we can remove the claim destroyContent(newClaim); handleContentNotFound(nfe, record); } catch (final FlowFileAccessException ffae) { resetWriteClaims(); // need to reset write claim before we can remove the claim destroyContent(newClaim); throw ffae; } catch (final IOException ioe) { resetWriteClaims(); // need to reset write claim before we can remove the claim destroyContent(newClaim); throw new ProcessException("IOException thrown from " + connectableDescription + ": " + ioe.toString(), ioe); } catch (final Throwable t) { resetWriteClaims(); // need to reset write claim before we can remove the claim destroyContent(newClaim); throw t;
public void checkpoint() { verifyTaskActive(); resetWriteClaims(false);
resetWriteClaims(); // need to reset write claim before we can remove the claim resetWriteClaims(); // need to reset write claim before we can remove the claim resetWriteClaims(); // need to reset write claim before we can remove the claim