[KinoSearch] KinoSearch Death
Marvin Humphrey
marvin at rectangular.com
Fri Oct 20 11:04:30 PDT 2006
On Oct 20, 2006, at 9:26 AM, Chris Nandor wrote:
> The other is to maybe have a test for a KinoSearch searcher
> object ... if
> it fails the test, meaning there's a problem, then it tries to
> recreate
> itself.
>
> None of these address the root problem, of course, they are rather
> attempts
> to work around it.
Workarounds are in order. There's other people attempting to solve
this problem for Lucene, and I'm going to focus my efforts
elsewhere. If a solution arises, we can port it.
Wrapping your Searcher constructor call in an eval is kind of ugly,
but it's an easy workaround. How about this?
my $searcher = eval {
KinoSearch::Searcher->new(
analyzer => $analyzer,
invindex => $invindex,
);
};
if ($@) {
warn("Failed to create Searcher (will retry): $@");
sleep 1;
$searcher = KinoSearch::Searcher->new
analyzer => $analyzer,
invindex => $invindex,
);
}
I would hope that 1 second is enough for any NFS cache issues to
resolve themselves. If not, we'll know about it from the logs. If
we see a Searcher constructor fail twice in a row, we investigate
further.
Marvin Humphrey
Rectangular Research
http://www.rectangular.com/
_______________________________________________
KinoSearch mailing list
KinoSearch at rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch
More information about the kinosearch
mailing list