mirror of
https://github.com/apache/nifi.git
synced 2025-02-09 11:35:05 +00:00
NIFI-11837: When determining whether or not a queue should exit 'swap mode' we need to look at the updated size of the queue after migrating data from swapped queue to active queue. Previously, we were looking at the size variable that was obtained from before the migration happened.
This closes #7506 Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
20b19992d2
commit
8f5392dd11
@ -346,7 +346,8 @@ public class SwappablePriorityQueue {
|
||||
logger.debug("Migrated {} FlowFiles from swap queue to active queue for {}", recordsMigrated, this);
|
||||
}
|
||||
|
||||
if (size.getSwappedCount() == 0) {
|
||||
final FlowFileQueueSize updatedQueueSize = getFlowFileQueueSize();
|
||||
if (updatedQueueSize.getSwappedCount() == 0) {
|
||||
swapMode = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user