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

IndexWriter gets angry at leftover temp files (e.g. from BKD)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      I was trying to run performance test for the new dimensional values and hit this crazy exception:

      Exception in thread "main" java.lang.NumberFormatException: For input string: "5976285795"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:583)
        at org.apache.lucene.index.IndexFileDeleter.inflateGens(IndexFileDeleter.java:287)
        at org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:217)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:935)
        at perf.IndexAndSearchOpenStreetMaps.createIndex(IndexAndSearchOpenStreetMaps.java:64)
        at perf.IndexAndSearchOpenStreetMaps.main(IndexAndSearchOpenStreetMaps.java:162)
      

      It happened because I killed my indexing process while BKD was writing temp files. On starting up again, IW would have removed these unreferenced files, except inflateGens got confused by their names.

      This bug only happens on trunk.

        Attachments

        1. LUCENE-6886.patch
          5 kB
          Michael McCandless
        2. LUCENE-6886.patch
          10 kB
          Michael McCandless
        3. LUCENE-6886.patch
          12 kB
          Michael McCandless

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: