[
https://issues.apache.org/jira/browse/NIFI-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joseph Witt resolved NIFI-124.
------------------------------
Resolution: Duplicate
> Persistent Prov Repo: should stop reading records after the limit has been
> reached
> ----------------------------------------------------------------------------------
>
> Key: NIFI-124
> URL: https://issues.apache.org/jira/browse/NIFI-124
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Reporter: Matt Gilman
>
> Currently, we use several threads to search Lucene and read the records from
> the repo. We need to modify this so that in the QueryResult, we have an
> "AtomicBoolean limitReached".
> We should set this to true whenever we merge the results and determine that
> there are at least 'limit' records read. Before reading each record, we
> should check this flag. If set to true, should stop reading. However, at this
> point we still need to ensure that we hit Lucene to determine the number of
> hits.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)