Uploaded image for project: 'Apache Blur'
  1. Apache Blur
  2. BLUR-142

Create IndexReader that can be exited at any time via AtomicBoolean

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.2.0
    • Fix Version/s: 0.2.0
    • Component/s: Blur
    • Labels:
      None

      Description

      This has to do with query cancelation and I thought that the way Lucene 4 implemented query rewrites this would not be needed anymore. However I was wrong. During leading wildcard queries the all the terms of a field have to be traversed and if the field is very large this can cause a lot of processing to occur. During this term iteration if the query is canceled or it timeouts the thread has no way of exiting the iteration loop.

      The ExitableReader provides a lightweight wrapper around a standard DirectoryReader and will throw an exception once the internal AtomicBoolean is set to false.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              amccurry Aaron McCurry
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: