From: Wolfgang M. <wol...@gm...> - 2006-08-02 06:52:02
|
Hi Alessandro, > So you are saying that this is because there is still a lock on the > file at the OS level? Yes, exactly. We had some problems with corrupted database files in the past, because people launched different db instances at the same time, working on the same data files. That's why eXist does now acquire file locks on all the database files before opening them. > And you are saying that on Windows, if an > application obtains a lock on a file, even if you kill the > application, the file might still be locked for some time after you > kill the application? Am I understanding this correctly? Yes, it looks like that. I rarely use windows, but I saw this behaviour with other applications as well. The lock is obtained by calling java.nio.FileChannel.lock(). It is unclear how Java implements the lock internally. We have to investigate. Wolfgang |