NIFI-226: when pre-fetching FlowFiles from queue, if a FlowFile is penalized, it is lost

This commit is contained in:
Mark Payne 2015-01-05 15:36:40 -05:00
parent 68b7ad78cc
commit a2ecfe3355
1 changed files with 3 additions and 0 deletions

View File

@ -1011,6 +1011,9 @@ public final class StandardFlowFileQueue implements FlowFileQueue {
if (record == null || record.isPenalized()) {
// not enough unpenalized records to pull. Put all records back and return
activeQueue.addAll(buffer);
if ( record != null ) {
activeQueue.add(record);
}
return;
} else {
buffer.add(record);