[ 
https://issues.apache.org/jira/browse/LUCENE-4870?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13729296#comment-13729296
 ] 

Vassil Zorev commented on LUCENE-4870:
--------------------------------------

Hello, Lucene team,

My team and I are currently running a quite old version of the lucene-core 
library - 3.0.0. As part of our internal memory optimization fixes, we are also 
planning to migrate to newer version. Research so far brought me to think our 
best risk-benefit trade off is Lucene 3.6.2. (We are planning to go to the 4.X 
branch - current development, but that would perhaps come in our own major 
version upgrade) However, due to this here issue, I would really like to know 
which version of the core library does not have it? 3.6.1 perhaps? Or 3.5.X?

As I understand from your comments, you are not yet planning to provide a fix 
on the 3.6.X branch - please advise to which version we should migrate where 
this bug is not present?

Thank you very much!
Vassil Zorev, web developer
                
> Lucene deletes entire index if and exception is thrown due do 
> TooManyOpenFiles and OpenMode.CREATE_OR_APPEND
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4870
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4870
>             Project: Lucene - Core
>          Issue Type: Bug
>    Affects Versions: 4.0, 4.1, 4.2, 3.6.2
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>            Priority: Blocker
>             Fix For: 5.0, 4.3, 4.2.1
>
>         Attachments: LUCENE-4870.patch, LUCENE-4870.patch, LUCENE-4870.patch
>
>
> The Lucene IndexWriter might delete an entire index if it hits a 
> FileNotFoundException triggered by TooManyOpenFiles during IndexWriter 
> creation. We try to figure out if the index exists already if the 
> OpenMode.CREATE_OR_APPEND is set (which is default). Yet, the logic in 
> DirectoryReader#indexExists(Directory) will just return false if we are not 
> able to open the segment file. This will cause the IW to assume there is no 
> index and it will try to create a new index there trashing all existing 
> commit points treating this as a OpenMode.CREATE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to