private void requireFlowFileQueue(final StandardRepositoryRecord repoRecord, final String queueId) { if (queueId == null || queueId.trim().isEmpty()) { logger.warn("{} does not have a Queue associated with it; this record will be discarded", repoRecord.getCurrent()); repoRecord.markForAbort(); } else if (repoRecord.getOriginalQueue() == null) { logger.warn("{} maps to unknown Queue {}; this record will be discarded", repoRecord.getCurrent(), queueId); repoRecord.markForAbort(); } }
repoRecord.markForAbort();
record.markForAbort(); } else if (queue == null) { logger.warn("{} maps to unknown FlowFile Queue {}; this record will be discarded", flowFile, connectionId); record.markForAbort();
standardRepoRecord.markForAbort(); } else if (queue == null) { logger.warn("{} maps to unknown Queue {}; this record will be discarded", flowFile, connectionId); standardRepoRecord.markForAbort();
private void handleContentNotFound(final ContentNotFoundException nfe, final StandardRepositoryRecord suspectRecord) { final ContentClaim registeredClaim = suspectRecord.getOriginalClaim(); final ContentClaim transientClaim = suspectRecord.getWorkingClaim(); final ContentClaim missingClaim = nfe.getMissingClaim(); final ProvenanceEventRecord dropEvent = provenanceReporter.drop(suspectRecord.getCurrent(), nfe.getMessage() == null ? "Content Not Found" : nfe.getMessage()); if (dropEvent != null) { context.getProvenanceRepository().registerEvent(dropEvent); } if (missingClaim == registeredClaim) { suspectRecord.markForAbort(); rollback(); throw new MissingFlowFileException("Unable to find content for FlowFile", nfe); } if (missingClaim == transientClaim) { rollback(); throw new MissingFlowFileException("Unable to find content for FlowFile", nfe); } }
private void requireFlowFileQueue(final StandardRepositoryRecord repoRecord, final String queueId) { if (queueId == null || queueId.trim().isEmpty()) { logger.warn("{} does not have a Queue associated with it; this record will be discarded", repoRecord.getCurrent()); repoRecord.markForAbort(); } else if (repoRecord.getOriginalQueue() == null) { logger.warn("{} maps to unknown Queue {}; this record will be discarded", repoRecord.getCurrent(), queueId); repoRecord.markForAbort(); } }
record.markForAbort(); } else if (queue == null) { logger.warn("{} maps to unknown FlowFile Queue {}; this record will be discarded", flowFile, connectionId); record.markForAbort();
standardRepoRecord.markForAbort(); } else if (queue == null) { logger.warn("{} maps to unknown Queue {}; this record will be discarded", flowFile, connectionId); standardRepoRecord.markForAbort();