lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: Potential Segment corruption
Date Thu, 02 Jun 2005 16:58:16 GMT
Doug Cutting wrote:
> I think the fix is much simpler.  This is a bug in FSDirectory. 
> Directory.createOutput() should always create a new empty file, and 
> FSDirectory's implementation does not ensure this.  It should try to 
> delete the file before opening it and/or call 
> RandomAccessFile.setLength(0).
> I've attached a patch.

I have now committed this patch.


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

View raw message