[ 
https://issues.apache.org/jira/browse/LUCENE-4975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shai Erera updated LUCENE-4975:
-------------------------------

    Attachment: LUCENE-4975.patch

Mike tripped a seed which was reproducible only on Linux which uncovered a bug 
in the handlers -- writing the segments.gen file should be done only after 
updateHandlerState() is called, and from what the handler says is its last 
state. Otherwise, we could write segments.gen w/ gen=7, but "kissing" the 
index, or updating the state (reading commits) trips an error, the handler is 
reset back to the last revision it knows is good, and we end up w/ a 
segments.gen file from the future. This then causes DirReader.open to fail w/ 
FNFE looking for a futuristic segments_N file.

MockDirWrapper is a nasty bitch. It should be called 
WhackoIOSubSystemDirectory! :)

Patch improves the handlers + make the tests more resilient so they don't enter 
an infinite loop (that's part of what Mike hit).

I'm beasting more. Please review the handlers' segments.gen writing logic.
                
> Add Replication module to Lucene
> --------------------------------
>
>                 Key: LUCENE-4975
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4975
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>         Attachments: LUCENE-4975.patch, LUCENE-4975.patch, LUCENE-4975.patch, 
> LUCENE-4975.patch, LUCENE-4975.patch, LUCENE-4975.patch, LUCENE-4975.patch, 
> LUCENE-4975.patch, LUCENE-4975.patch, LUCENE-4975.patch, LUCENE-4975.patch
>
>
> I wrote a replication module which I think will be useful to Lucene users who 
> want to replicate their indexes for e.g high-availability, taking hot backups 
> etc.
> I will upload a patch soon where I'll describe in general how it works.

--
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