Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1171

Make DocumentsWriter more robust on hitting OOM

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      I've been stress testing DocumentsWriter by indexing wikipedia, but not
      giving enough memory to the JVM, in varying heap sizes to tickle the
      different interesting cases. Sometimes DocumentsWriter can deadlock;
      other times it will hit a subsequent NPE or AIOOBE or assertion
      failure.

      I've fixed all the cases I've found, and added some more asserts. Now
      it just produces plain OOM exceptions. All changes are contained to
      DocumentsWriter.java.

      All tests pass. I plan to commit in a day or two!

        Attachments

        1. LUCENE-1171.patch
          13 kB
          Michael McCandless

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: