lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: lots of .cfs (compound files) in the index directory
Date Thu, 15 Mar 2012 16:33:35 GMT
Close calls and always did call commit in 3.x?

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Michael McCandless [mailto:lucene@mikemccandless.com]
> Sent: Thursday, March 15, 2012 5:29 PM
> To: java-user@lucene.apache.org
> Subject: Re: lots of .cfs (compound files) in the index directory
> 
> On Thu, Mar 15, 2012 at 12:02 PM, Tim Bogaert <bogguard@gmail.com>
> wrote:
> 
> > while removing the prepareCommit we noticed we didn't actually called
> > the
> > IW.commit() method before the IW.close().
> > Altough the documentation says the close() method commits all the
> > changes we tried to add the commit() method before the IW.close() and
> > this seems to fix our problem.
> 
> OK, thanks for bringing closure.
> 
> > Is this a bug or just a misunderstanding of the documentation and you
> > always have to call the commit() method first?
> 
> You're actually always supposed to call commit() (or, rollback()) after
> prepareCommit.
> 
> But it's a nasty trap that close() silently drops changes.
> 
> I've opened https://issues.apache.org/jira/browse/LUCENE-3872 to fix that
> trap...
> 
> Thanks for raising this!
> 
> Mike
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message