[ 
https://issues.apache.org/jira/browse/NIFI-5864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Truong Duc Kien updated NIFI-5864:
----------------------------------
    Description: The result of the method `drainQueue` does not include the 
size of the last expired record if the total number of expired records is 
larger or equal to {{MAX_EXPIRED_RECORDS_PER_ITERATION}}  (was: When the size 
of {{expiredRecords}} is equal to {{MAX_EXPIRED_RECORDS_PER_ITERATION}}, the 
loop break early and {{drainSized}} will not include the last record.

https://github.com/apache/nifi/blob/5561c29ed3b8c635f499582e983a5147cb06e306/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/queue/SwappablePriorityQueue.java#L650)

> Incorrect size calculation when draining SwappablePriorityQueue
> ---------------------------------------------------------------
>
>                 Key: NIFI-5864
>                 URL: https://issues.apache.org/jira/browse/NIFI-5864
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>            Reporter: Truong Duc Kien
>            Priority: Major
>
> The result of the method `drainQueue` does not include the size of the last 
> expired record if the total number of expired records is larger or equal to 
> {{MAX_EXPIRED_RECORDS_PER_ITERATION}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to