[ 
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

bq. maybe also call MDW.setRandomIOExceptionRateOnOpen

Thanks Mike! I added that and a slew of problems surfaced, most of them in the 
test, but I improved the handlers' implementation to cleanup after themselves 
if e.g. a copy or sync to the handlerDir failed. While this wasn't a bug, it 
leaves the target index directory clean.

There's one nocommit which bugs me though -- I had to add 
dir.setPreventDoubleWrite(false) because when the handler fails during copying 
of say _2.fdt to the index dir, the file is deleted from the indexDir, and the 
client re-attemts to upgrade. At this point, MDW complains that _2.fdt was 
already written to, even though I deleted it.

Adding this setPrevent was the only way I could make MDW happy, but I don't 
like it since I do want to catch errors in the handler/client if they e.g. 
attempt to copy over an existing file.

Maybe we can make MDW respond somehow to delete()? I know that has bad 
implications on its own, e.g. code which deletes and then accidentally 
recreates files with older names ... any ideas?
                
> 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
>
>
> 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