lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "luocanrao" <luocan19826...@sohu.com>
Subject 答复: problem about backup index file
Date Thu, 25 Feb 2010 11:47:02 GMT
Thanks ,Uwe Schindler
In linux,it works fine!
I

-----邮件原件-----
发件人: Uwe Schindler [mailto:uwe@thetaphi.de] 
发送时间: 2010年2月25日 16:30
收件人: java-user@lucene.apache.org
主题: RE: problem about backup index file

In Windows you have no chance to do that without closing all IndexWriters and IndexReaders
that modify indexes.

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

> -----Original Message-----
> From: luocan19826164@sohu.com [mailto:luocan19826164@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:&nbsp;another program lock the file!&nbsp;at
> java.io.FileInputStream.readBytes(Native Method)&nbsp;at
> java.io.FileInputStream.read(Unknown Source)&nbsp;at
> com.common.Utils.copyDirectory(Utils.java:149)&nbsp;at
> com.common.Utils.copyDirectory(Utils.java:138)&nbsp;at
> com.common.Utils.copyDirectory(Utils.java:138)&nbsp;at
> com.index.IndexManager.backDataPolicy(IndexManager.java:398)&nbsp;at
> com.index.IndexManager.indexLoop(IndexManager.java:222)&nbsp;at
> com.Main$1.run(Main.java:48)&nbsp;at java.lang.Thread.run(Unknown
> Source)
> &nbsp;
> How can I backup lucene file in IR thread.


---------------------------------------------------------------------
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