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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2.0
    • 0.2.0
    • Blur
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: