lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller (Commented) (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3564) rename IndexWriter.rollback to .rollbackAndClose
Date Sun, 06 Nov 2011 20:59:51 GMT


Mark Miller commented on LUCENE-3564:

bq. Is there a way to rollback without closing? That would seem far more useful.

For a little while in one of my updatehandler patches I added code to open back up the IndexWriter
after it closed in rollback - not sure if you could just not close super simply or not, so
I just hacked around it - nice when you don't want to sync around the indexwriter and someone
calls rollback - I didn't want to replace the IndexWriter with a new one after the rollback.
Eventually I just went another route above Lucene though.
> rename IndexWriter.rollback to .rollbackAndClose
> ------------------------------------------------
>                 Key: LUCENE-3564
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 3.5, 4.0
> Spinoff from LUCENE-3454, where Shai noticed that rollback is trappy since it [unexpected]
closes the IW.
> I think we should rename it to rollbackAndClose.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message