Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1911

File descriptor leak while indexing, may cause index corruption

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Component/s: update
    • Labels:
      None
    • Environment:

      Description

      While adding documents to an already existing index using this build, the number of open file descriptors increases dramatically until the open file per-process limit is reached (1024) , at which point there are error messages in the log to that effect. If the server is restarted the index may be corrupt

      commits are handled by autocommit every 60 seconds or 500 documents (usually the time limit is reached first).
      mergeFactor is 10.

      It looks as though each time a commit takes place, the number of open files (obtained from " lsof -p `cat solr.pid` | egrep ' [0-9]+r ' ") increases by 40, There are several open file descriptors associated with each file in the index.

      Rerunning the same index updates with an older Solr (built from trunk in Feb 2010) doesn't show this problem - the number of open files fluctuates up and down as segments are created and merged, but stays basically constant.

        Attachments

        1. openafteropt.txt
          18 kB
          Simon Rosenthal
        2. indexlsof.tar.gz
          33 kB
          Simon Rosenthal

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              simon.rosenthal Simon Rosenthal
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: