mirror of
https://github.com/apache/nifi.git
synced 2025-03-06 09:29:33 +00:00
NIFI-226: when pre-fetching FlowFiles from queue, if a FlowFile is penalized, it is lost
This commit is contained in:
parent
68b7ad78cc
commit
a2ecfe3355
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user