[
https://issues.apache.org/jira/browse/LUCENE-6886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael McCandless updated LUCENE-6886:
---------------------------------------
Attachment: LUCENE-6886.patch
Patch w/ test and fix ... I fixed the createTempOutput impls to be more careful
in how they name the temp files, stuffing the "randomness" into the file
extension instead of the "gen". I added a protected utility method to
{{BaseDirectory}} to do this (maybe it should be in {{Directory}} instead?).
> IndexWriter gets angry at leftover temp files (e.g. from BKD)
> -------------------------------------------------------------
>
> Key: LUCENE-6886
> URL: https://issues.apache.org/jira/browse/LUCENE-6886
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Fix For: Trunk
>
> Attachments: LUCENE-6886.patch
>
>
> I was trying to run performance test for the new dimensional values and hit
> this crazy exception:
> {noformat}
> 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)
> {noformat}
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]