New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got FileSystemException when repairing database #23
Comments
Are you still experiencing the issue on latest version? |
I am still experiencing this issue. The exception is thrown from this line in HaloDBFile. Both me and @tworogue are on Windows, that might be why? The documentation for Files.move states this for the ATOMIC_MOVE flag:
Edit: I removed the ATMIC_MOVE flag but that did not solve anything. |
Every time when repairing database after incorrect shutdown I get following error:
Caused by: java.nio.file.FileSystemException: C:\database\1549869944.index.repair -> C:\database\1549869944.index: The process cannot access the file because it is being used by another process.
It seems like when calling method
openDataFilesForReading()
my '.index' file has been opened for reading and hadn't been closed after it. No other processes use this file.So when we call method
repairFile(DBDirectory dbDirectory)
we get an exception in line:Files.move(repairFile.indexFile.getPath(), indexFile.getPath(), REPLACE_EXISTING, ATOMIC_MOVE);
Any suggestions on how to avoid this error?
The text was updated successfully, but these errors were encountered: