Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-124

Persistent Prov Repo: should stop reading records after the limit has been reached

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Core Framework
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mcgilman Matt Gilman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: