[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-614?pag...
]
Sanne Grinovero commented on HSEARCH-614:
-----------------------------------------
The workaround seems easy enough to give this a very low priority, and is actually also
good practice to have a master refresh time lower than the slave - pointless to create
indexes which aren't consumed) I agree this shouldn't be a problem to be
postponed.
Michael? If you need this fixed we can give pointers and advice, but you should propose a
patch :)
In any case I'd avoid using locks or marker files from the slave, as a crashing slave
would prevent the whole cluster to make any progress.
An easy improvement that could be applied is to improve the error only: make sure to catch
this exception (or check for file existence before copying) and have the slave retry - but
even then a very loud error should be logged, as there's a very high likelyhood that
in such a case the client will loop in the error. Actually I think it should retry
already, so the patch should just throw a more explicit error message.
Also keep in mind that new clustering strategies are coming soon: HSEARCH-307
FileNotFoundException during slave synchronization with source
--------------------------------------------------------------
Key: HSEARCH-614
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-614
Project: Hibernate Search
Issue Type: Bug
Components: directory provider
Affects Versions: 3.1.0.GA, 3.1.1.GA, 3.2.0.Final, 3.2.1, 3.3.0.Beta2
Environment: Hibernate 3.6, Oracle 10g
Reporter: Michael Mogley
Priority: Minor
Fix For: 3.3.0.CR1
The current file synchronization mechanism in the FSSlaveDirectoryProvider has the
potential to throw a FileNotFoundException if the source file it's copying is deleted
before the copy operation completes.
https://forum.hibernate.org/viewtopic.php?f=9&t=1007801&p=2437680...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira