I continuously encounter this no mater what I do running Hibernate Search in a clustered configuration.
There is no getting rid of it which messes up search.
Is anyone else using Hibernate Search in a clustered configuration based on the recommended approach? If so do you encounter this?
I think the default shipped slavedirectoryprovider has some potential issues with how they deal with markers?
Code:
private File determineCurrentSourceFile() {
File sourceFile = null;
if (new File(source, "current1").exists()) {
sourceFile = new File(source, "1");
} else if (new File(source, "current2").exists()) {
sourceFile = new File(source, "2");
}
return sourceFile;
}
Why are FileLocks not used? Here we are just hoping we don't encounter a race condition which is entirely possible.
Now, on a rare occasion I may see "Unable to determine current in source directory" but always?
The error is occurring in a production environment and this server is not directly accessible making it difficult to debug.