[
https://issues.apache.org/jira/browse/LUCENE-6886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14993748#comment-14993748
]
Robert Muir commented on LUCENE-6886:
-------------------------------------
I like it. I think the counters can be atomics in this case and its still easy
to understand. Thanks for adding the check!
> 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, LUCENE-6886.patch, 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]