Thanks ,Uwe Schindler In linux,it works fine! I -----邮件原件----- 发件人: Uwe Schindler [mailto:[email protected]] 发送时间: 2010年2月25日 16:30 收件人: [email protected] 主题: 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: [email protected] > -----Original Message----- > From: [email protected] [mailto:[email protected]] > 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.readBytes(Native Method) at > java.io.FileInputStream.read(Unknown Source) at > com.common.Utils.copyDirectory(Utils.java:149) at > com.common.Utils.copyDirectory(Utils.java:138) at > com.common.Utils.copyDirectory(Utils.java:138) at > com.index.IndexManager.backDataPolicy(IndexManager.java:398) at > com.index.IndexManager.indexLoop(IndexManager.java:222) at > com.Main$1.run(Main.java:48) at java.lang.Thread.run(Unknown > Source) > > How can I backup lucene file in IR thread. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
