need to copy it again.this means the number
> of files is growing more and more.never getting less.another question:I
> should delete the files previous I backup when I backup again. - 原文 -
> 发件人: Michael McCandless 主 题: Re: problem about backup index file时 间:
> 2
there's no need to copy it again.this means the number of
files is growing more and more.never getting less.another question:I should
delete the files previous I backup when I backup again. - 原文 - 发件人:
Michael McCandless 主 题: Re: problem about backup index file时 间: 2010年2月25日
This is likely happening because you're attempting to copy a file that
IndexWriter is currently writing?
You shouldn't do that (copy files that are still being written) --
that just wastes bytes (they aren't used by the index), and causes
this failure on Windows.
Instead, you should use SnapshotD
hu.com [mailto:luocan19826...@sohu.com]
> Sent: Thursday, February 25, 2010 9:15 AM
> To: java-user
> Subject: problem about backup index file
>
> I want backup my index file,but I get the follow error.
> java.io.IOException: another program lock the file! at
> java.io.FileInputStream.
I want backup my index file,but I get the follow error.
java.io.IOException: another program lock the file! at
java.io.FileInputStream.readBytes(Native Method) at
java.io.FileInputStream.read(Unknown Source) at
com.common.Utils.copyDirectory(Utils.java:149) at
com.common.Utils.copyDirectory(Uti